“CMTS”的版本间的差异

来自qingwei personal wiki
跳转至: 导航搜索
DEBUG
vbr_poloris_build
 
(未显示同一用户的20个中间版本)
第1行: 第1行:
 +
== LOG ==
 +
cpp client ------------------> CPP_VNIC_DBG_ERROR  buginf
 +
log dir /tmp/fp/trace/cpp_cp_F0-0.26489_0.20161205055059.bin
 +
 +
cpp jib-------------------->jib_fd (self new a file /tmp/jib_data.out)
 +
 +
fman ------------------>ERR/FMAN_DPIDB_ERR
 +
log dir /tmp/fp/trace/fman_fp_F0-0.28766_0.20161205055107.bin
 +
 +
cdman ------------------>stream in binos/cable/cdman/src/cdman_main.c(self new a file /tmp/cdman.out)
 +
 +
ios  ------------------>找相关debug 开关
 +
 +
 +
 +
 
== DEBUG ==
 
== DEBUG ==
 
=== RPD can not online ===
 
=== RPD can not online ===
 
sho cable  depi  multicast pool
 
sho cable  depi  multicast pool
 
sho cable  rpd log  reverse
 
sho cable  rpd log  reverse
 +
=== debug modem online ===
 +
 +
No MAP with Broadcast  Initial Ranging  Opportunity
 +
 +
R-PHY#show upstream map counter 0 0
 +
Map Processor Counters
 +
----------------------------------------------
 +
Mapped minislots                  :          0
 +
Discarded minislots (chan disable):          0
 +
Discarded minislots (overlap maps):          0
 +
Discarded minislots (early maps)  :          0
 +
Discarded minislots (late maps)  :          0
 +
Unmapped minislots                :          0
 +
Last mapped minislot              :          0
 +
No uepi map
 +
<<<<check uepi map send  in node
 +
R-PHY#show upstream uepi configuration
 +
Port Channel PwSubtype        SessionId  DstMac        DstIp
 +
0    0      PSP-UEPI-SCQAM    1073807360 0050.56b2.28d8 10.40.1.2
 +
0    0      PSP-BW-REQ-SCQ    1073872896 0050.56b2.28d8 10.40.1.2
 +
0    0      PSP-RNG-REQ-SCQ  1074003968 0050.56b2.28d8 10.40.1.2
 +
0    0      PSP-MAP-SCQ      1073741824 0050.56b2.28d8 10.40.1.2          -- 0x4000_0000
 +
0    0      PSP-SPECMAN      1074266112 0050.56b2.28d8 10.40.1.2
 +
0    1      PSP-UEPI-SCQAM    1073807364 0050.56b2.28d8 10.40.1.2
 +
0    1      PSP-RNG-REQ-SCQ  1074003972 0050.56b2.28d8 10.40.1.2
 +
0    1      PSP-MAP-SCQ      1073741828 0050.56b2.28d8 10.40.1.2
 +
R-PHY#show upstream map counter 0 0
 +
Map Processor Counters
 +
---------------------------------------------------
 +
Mapped minislots                  :          0
 +
Discarded minislots (chan disable):          0
 +
Discarded minislots (overlap maps):          0
 +
Discarded minislots (early maps)  :          0
 +
Discarded minislots (late maps)  :          0
 +
Unmapped minislots                :          0
 +
Last mapped minislot              :          0
 +
 +
<<<<check uepi map send  in vbr
 +
It's in DS vMAC. It was a temporary solution. There is a plan to form the UEPI MAP in CDMAN code. Not sure it is commited
 +
BINOS_ROOT/cable/vmac/dsmac/src/doc_proc.c, line 604, calling create_and_send_uepi_map_pw_pkt
 +
looking at the code, depi_mpeg.c, line 439 onwards, the UEPI MAP header is hard coded
 +
session ID has to be 0x4000_0000
 +
last byte is ch << 2
 +
session ID is 0x4000_00{ch<<2}
 +
tcpdump -i Gi2 dst 10.40.1.32 -xx > us_map
 +
03:52:23.112715 IP 10.40.1.2 > 10.40.1.32:  l2tp 70
 +
        0x0000:  0004 9f10 0443 0050 56b2 28d8 0800 4500
 +
        0x0010:  005a 0001 0000 ff73 a4be 0a28 0102 0a28
 +
        0x0020:  0120 4000 0000 4001 b776 c03c 01e0 2f00                -- MAP starts with 0xC0
 +
        0x0030:  0001 001e f659 c600 002e 0000 0301 0300
 +
        0x0040:  0105 0600 0010 39de 0010 38ae 0306 0305
 +
        0x0050:  0003 8000 fffc c001 0003 8029 fffc 402a
 +
        0x0060:  fffc 4032 0001 c033
 +
You can also use tcpdump –w to write to a pcap file and use wireshark to decode the pkt. If you have proper plugin to decode UEPI PSP, you should be able to see MAPs
 +
Modem Received a RNG-RSP with ABORT
 +
RNG-RSP UsChanId=1 Adj: tim=807 power=-48 freq=73 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-36 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue
 +
RNG-RSP UsChanId=1 Stat=Abort
 +
[00:03:49 01/01/1970] [CmDocsisCtlThread] BcmCmUsRangingState::RngRspMsgEvent: Received a RNG-RSP with ABORT! Going elsewhere... hwTxId=0 docs ucid=1
 +
Logging event: Unicast Ranging Received Abort Response - Re-initializing MAC;CM-MAC=7c:b2:1b:0f:ea:3e;CMTS-MAC=00:1e:bd:48:90:00;CM-QOS=1.0;CM-VER=3.0;
 +
CM> No more active upstream channel, reboot CM
 +
Reason is
 +
cmts收到power的和期望的difference
 +
从log看是power太低了,有可能是modem或连线问题
 +
加了10db衰减 solve
 +
 +
 +
R-PHY#show bcm-register top-submodules counter
 +
L2 Swtich sub modules counter:
 +
00000000: 017fd3d3 00000000 0006ade5 00000000
 +
00000010: 00000000 00000000 00000000 00000000
 +
00000020: 00000000 00000000 0000000e 00000000
 +
00000030: 0007883a 00000000 000e5380 00000000
 +
00000040: 00000001 00000000 00000001 00000000
 +
00000050: 00000001 00000000 00000001 00000000
 +
00000060: 00000000 00000000 00000000 00000000
 +
00000070: 00000000 00000000 00000000 00000000
 +
00000080: 0000636a 00000000 00b8a387 00000000
 +
00000090: 00000000 00000000 00000000 00000000
 +
000000a0: 00007e8d 00000000 00ba86fe 00000000
 +
 +
R-PHY#show bcm-register top-submodules counter
 +
L2 Swtich sub modules counter:
 +
00000000: 017fd89d 00000000 0006adfa 00000000
 +
00000010: 00000000 00000000 00000000 00000000
 +
00000020: 00000000 00000000 0000000e 00000000
 +
00000030: 00078851 00000000 000e53ad 00000000
 +
00000040: 00000001 00000000 00000001 00000000
 +
00000050: 00000001 00000000 00000001 00000000
 +
00000060: 00000000 00000000 00000000 00000000
 +
00000070: 00000000 00000000 00000000 00000000
 +
00000080: 0000636b 00000000 00b8a5d7 00000000
 +
00000090: 00000000 00000000 00000000 00000000
 +
000000a0: 00007e8d 00000000 00ba894e 00000000
 +
 +
R-PHY#show upstream map counter 0 0
 +
Map Processor Counters
 +
------------------------------------------------
 +
Mapped minislots                  :          0
 +
Discarded minislots (chan disable):          0
 +
Discarded minislots (overlap maps):          0
 +
Discarded minislots (early maps)  :          0
 +
Discarded minislots (late maps)  :          0
 +
Unmapped minislots                :          0
 +
Last mapped minislot              :          0
 +
 +
MapInfoElements:
 +
sid: 0    iuc: 0xe    offset: 0    compressed: 0x38000
 +
sid: 0x3fff    iuc: 0x3    offset: 0x1    compressed: 0xfffcc001
 +
sid: 0    iuc: 0xe    offset: 0x9e    compressed: 0x3809e
 +
sid: 0x3fff    iuc: 0x1    offset: 0x9f    compressed: 0xfffc409f
 +
sid: 0    iuc: 0x7    offset: 0xa2    compressed: 0x1c0a2
 +
 +
=== cdman map debug ===
 +
<<< check map counter increase or not in map builder module
 +
sh controllers upstream-Cable x/y/z us-channel <n> cdm-ump 
 +
<<<  Check MAP and UCD in map sending module per US controller, if tx counter not increase, it means MAP/UCD not send to DSJIB successfully
 +
sh controllers c6/0/0 upstream | i MAP
 +
sh controllers c6/0/0 downstream | i UCD
 +
<<< check if map sent out successfully from DSJIB
 +
sh controllers downstream-Cable 6/0/6 counter rf-channel
 +
<<<check if map initial ranging grant send
 +
sh int c0/0/0 mac-scheduler 0 | in Init Mtn
 +
<<<<check uepi map send
 +
#sh controllers c6/0/5 upstream | in Map
 +
Map Count S/W = 955548
 +
Map Count Error = 0
 +
No MAP buffer= 0
 +
Map Count Internal = 869750
 +
Map Count External = 869757
 +
看看 其中 Map Count Internal = 869750是发给USPHY 通过uepi的
 +
<<<<check BWR 有没有被drop
 +
#sh controllers c6/0/4 upstream | i OpSt|Requests
 +
Controller 6/0/4 upstream 0  AdminState:UP OpState: UP
 +
  Bandwidth Requests = 34835
 +
  Piggyback Requests = 515
 +
  Invalid BW Requests= 1392
 +
这个命令里可以看BWR counter
 +
正常情况下  Bandwidth Requests会增加  Invalid BW Requests不变
 +
如果这个counter是正常的 那就抓下sfid tracker  看看grant是否给了
 +
===  SFID tracker (LC IOS console)  ===
 +
 +
no debug cable interface cx/y/z service-flow <sfid> track
 +
debug cable interface cable x/y/z serv <sfid> track
 +
// wait for 30 seconds, then execute the below CLI to print buffered logs to file
 +
show int cable x/y/z up debug sf <sfid> 0 1000 verbose
 +
backup the /tmp/cc/cdman-doc-output.txt
 +
这个是SFID tracker命令     你先看看这些吧
 +
 +
cbr send replication map to usphy and modem
 +
 +
debug cable mac-domain map-repl
 +
debug cable interface c7/0/0 verbose  ------open sup map-repl debug
 +
set platform software trace cdman 8/0 -----open cdman-md-com debug
 +
test cable md cdman show md c7/0/0 verbose  ----- check rfid in cdman
 +
 +
rfid
 +
sup-iosd(htonl can not used)------>(htonl must be used)clc-iosd  through ipc msg
 +
clc-iosd ------->cdman  through ipc msg
 +
 +
cdman
 +
ubrcce_clc_mapucd_repl_update_handler       处理map repl
 +
   
 +
            ubr_mbrgrp_rfids_add_from_msg     
 +
         
 +
                    rfid_grp_buf_extract_bitmap_entry  -----------rfid = ntohs(bm_entry->first_rfid);   大小端问题(cbr 平台本身就是大端不存在,vbr存在),so need to change ntohs  to ntohl
 +
 +
sh pl hardware qfp active cab uflow vslot 7 md 0  statistics
 +
sh pl hardware qfp active cab cm rx
 +
=== crash solution ===
 +
shm_vnic_adaptor_cc down --------socket bind ip is hard code
 +
iosd-clc down --------can not alloc memory
 +
 +
vmac down may be due to shm_cc down
 +
debug solusion
 +
1.log  btdecode /tmp/cc/7/trace/shm
 +
/harddisk/tracelogs/
 +
2.decode harddisk/core/
 +
 +
cpp inject packet test
 +
test ubr-dp inject bf-pkt 0.0.0 ffff.ffff.ffff bundle 1 arp-req 10
 +
sh platform hardware qfp active statistics ------cpp inject packet
 +
 +
CPP punt packet show
 +
sh plat hardware qf active infrastructure punt summary
 +
 +
rpd upstream up
 +
test cable rpd 0.0.0 up-us
 +
 +
=== fman/cpp debug ===
 +
show pl ha qf ac infrastructure bqs schedule output default interface In0/0/0:0
 +
show pl ha qf ac infrastructure bqs schedule output default interface In0/0/0:0 hierarchy
 +
show pl ha qf ac infrastructure bqs root-schedule all | i VBR
 +
 +
 +
debug cab dhcp
 +
debug cab mac-addr
 +
 +
show platform hardware qfp active statistics drop
 +
sh cable  bundle 1 forwarding-table
 +
 +
sh pl hardware qfp active interface if-name bundle 1
 +
sh platform hardware qfp active feature docsis bf 9 replist
 +
 +
sh platform software cable  FP active vbun-fld
 +
 +
test cable dsnb show-inj-hdr-n-state Integrated-Cable 9/0/0:0
 +
 +
 +
 +
set pl software trace forwarding-manager FP active cable-vbun-fld debug
 +
debug platform software cbl_vbun_fld trace
 +
 +
 +
 +
show platform hardware qfp active statistics drop
 +
show pl ha qf ac statis dro
 +
-------------------------------------------------------------------------
 +
Global Drop Stats                        Packets                  Octets 
 +
-------------------------------------------------------------------------
 +
CblBfReplicationStart                          4                    168 
 +
Disabled                                        8                    656 
 +
EncapInvalid                                1577                  148546 
 +
UnconfiguredIpv4Fia                            4                    472 
 +
UnconfiguredIpv6Fia                            5                    622 
 +
 +
Router#show pl ha qf ac statis dro
 +
-------------------------------------------------------------------------
 +
Global Drop Stats                        Packets                  Octets 
 +
-------------------------------------------------------------------------
 +
CblBfReplicationStart                          4                    168 
 +
Disabled                                        8                    656 
 +
EncapInvalid                                1579                  148666 
 +
UnconfiguredIpv4Fia                            4                    472 
 +
UnconfiguredIpv6Fia                            5                    622
 +
debug pl ha qf ac fe cef-mpl drop cause xxx data
 +
show pl ha qf ac statis dro det  -------get xxx
 +
 +
show pl software interface fp ac name-string Te0/0/0
 +
sh platform hardware qfp active interface if-name Te0/0/0 path
 +
 +
cpp_cp_Fo traceback    -------------- cd binos  &&  mcp_stump
 +
cpp/dp/obj/ulord/ultra,qfp-ucode-vbr.symbols
 +
 +
 +
Router#debug pl ha
 +
Router#test pl ha qf ac feature docsis dtrack mac-address 0050.5691.2540
 +
Router#test pl ha qf ac feature docsis dtrack pa                     
 +
Router#test pl ha qf ac feature docsis dtrack packet-copy
 +
 +
 +
Router#show pl ha qf ac fe do dt statistics
 +
=== w-online issue debug ===
 +
UBR DSBG:
 +
  DSBG assn info debugging is on
 +
  DSBG assn errors debugging is on
 +
UBR DSNB:
 +
  DSNB interface state debug debugging is on
 +
  DSNB interface state change debug debugging is on
 +
  DSNB interface state change event debug debugging is on
 +
UBR MD:
 +
  MD DS CGD DEBUG debugging is on
 +
  MD IPC DEBUG debugging is on
 +
  MD INTF DEBUG debugging is on
 +
 +
 +
CMTS:
 +
  CMTS md-sg debugging is on  ----------debug cable md-sg
 +
  CMTS md-sg HA sync debugging is on
 +
  CMTS RCC debugging is on
 +
  CMTS fiber node debugging is on
 +
  CMTS CGD CLI debugging is on
 +
CMTS specific:
 +
  Debugging is on for Cable1/0/0 (verbose)
 +
 +
 +
Slot-9-0#sh debugging
 +
UBR DSBG:
 +
  DSBG assn info debugging is on
 +
  DSBG assn errors debugging is on
 +
UBR DSNB:
 +
  DSNB interface state debug debugging is on
 +
  DSNB interface state change debug debugging is on
 +
  DSNB interface state change event debug debugging is on
 +
UBR MD:
 +
  MD DS CGD DEBUG debugging is on
 +
  MD IPC DEBUG debugging is on
 +
  MD INTF DEBUG debugging is on
 +
CMTS:
 +
  CMTS md-sg debugging is on
 +
  CMTS md-sg HA sync debugging is on
 +
  CMTS RCC debugging is on
 +
  CMTS fiber node debugging is on
 +
  CMTS CGD CLI debugging is on
 +
 +
=== mcp_stump ===
 +
mcp_stump
 +
-Traceback= 1#d7f7e2f4b82d004ca888a61614565aa5  :55E45D6A1000+9201BD7 :55E45D6A1000+91F64BE :55E45D6A1000+91F5A8C :55E45D6A1000+91F3EDA :55E45D6A1000+8679636 :55E45D6A1000+9210672
 +
 +
-Traceback=1#8403002c26876a91880fdf660875f754 804a80f6 804a7723 800def35 804a906e 80409cff 804042b2 80403a50 803f9b53
 +
 +
chan 0:0 txn 0x2CC00000 failed ucd-rpd-np
 +
debug cable ump ucd-proxy
 +
debug cable ucm
 +
 +
linkfarm/x86_64_cge7-xbr/usr/binos/bin/x86_64bi_linux_iosd_xbr-universalk9-ms.sun
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+BCF650E :5600E619F000+BCECE14 :5600E619F000+707A480 :5600E619F000+707A376 :5600E619F000+70739A6 :5600E619F000+6DF0B45 :5600E619F000+6DF286F :5600E619F000+6E08167 :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310
 +
 +
-Traceback= 1#12bcb8fc5d5aac60ba7038ff50976b76 :55FD0D8A2000+6D5E5D9 :55FD0D8A2000+6D5DDE4 :55FD0D8A2000+6D5F303 :55FD0D8A2000+6EE8AA1 :55FD0D8A2000+6EE9005 :55FD0D8A2000+6EEDEF5 :55FD0D8A2000+6EECF70 :55FD0D8A2000+6EEB055 :55FD0D8A2000+6DFF6F5 :55FD0D8A2000+6DDF2E4 :55FD0D8A2000+6DCD4C1 :55FD0D8A2000+6DCC8C8 :55FD0D8A2000+8456101 :55FD0D8A2000+8455C53 :55FD0D8A2000+844EBBC :55FD0D8A2000+91F64AE
 +
 +
src-ubr/dataplane/ubr_dp_acfe.c", line 737
 +
 +
 +
 +
ASSERTION FAILED: file "../src-ubr/dataplane/ubr_dp_acfe.c", line 737
 +
 +
Exception to IOS Thread:
 +
Frame pointer 0x7FF835E7D300, PC = 0x5600ED208966
 +
 +
UNIX-EXT-SIGNAL: Segmentation fault(11), Process = cardstate oir task
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+7069966 :5600E619F000+6DD5E1D :5600E619F000+6E07D4B :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310
 +
 +
Fastpath Thread backtrace:
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  c:7FF8E2C98000+E0AF3 prelib:7FF9412C9000+32AE
 +
 +
Auxiliary Thread backtrace:
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  pthread:7FF8E2877000+BB45 prelib:7FF9412C9000+32AE
 +
 +
RAX = 0000000000000001  RBX = 782EE55EF87F0000
 +
RCX = 00007FF8E39EBD80  RDX = 9404000000000000
 +
RSP = 00007FF835E7D300  RBP = 00007FF835E7D320
 +
RSI = 000000000000780E  RDI = 0000000000004791
 +
R8  = 00007FF8E39EC438  R9  = 0000000000000002
 +
R10 = 0000000000000040  R11 = 0000000000000282
 +
R12 = 60250BA2F87F0000  R13 = 00007FF8A20B2560
 +
R14 = 0000000000000000  R15 = B03CAB5DF87F0000
 +
RFL = 0000000000010203  RIP = 00005600ED208966
 +
CS = 0033  FS = 0000  GS = 0000
 +
ST0 = 0000 0000000000000000  ST1 = 0000 0000000000000000
 +
ST2 = 0000 0000000000000000  ST3 = 0000 0000000000000000
 +
ST4 = 0000 0000000000000000  ST5 = 0000 0000000000000000
 +
ST6 = 0000 0000000000000000  ST7 = 0000 0000000000000000
 +
X87CW = 037F  X87SW = 0000  X87TG = 0000  X87OP = 0000
 +
X87IP = 0000000000000000  X87DP = 0000000000000000
 +
XMM0  = 33413141382B30303046393136453030
 +
XMM1  = 25252525252525252525252525252525
 +
XMM2  = 00000000000000000000000000000000
 +
XMM3  = 0000000000000000FF00000000000000
 +
XMM4  = 00000000000000000000000000000000
 +
XMM5  = 00000000000000000000000000000000
 +
XMM6  = 00000000000000000000000000000000
 +
XMM7  = 00000000000000000000000000000000
 +
XMM8  = 00000000000000000000000000000000
 +
XMM9  = 00000000000000000000000000000000
 +
XMM10 = 00000000000000000000000000000000
 +
XMM11 = 00080000000400000002000000010000
 +
XMM12 = 00000000000000000000000000000000
 +
XMM13 = 80000000400000002000000010000000
 +
XMM14 = 00000000000000000000000000000000
 +
XMM15 = 00000000000000000000000000000000
 +
MXCSR = 00001F80
 +
 +
Writing crashinfo to bootflash:crashinfo_RP_00_00_20161208-013048-UTC
 +
Buffered messages: (last 4096 bytes only)
 +
E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985
 +
*Dec  8 01:30:11.352: fmanrp_cable_fwd_dpidb_cmnparams_set()L368 Err: DPIDB_CABLE_FWD Integrated-Cable7/0/0:1
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+85DBD9D :5600E619F000+85C3FA3 :5600E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985
 +
*Dec  8 01:30:11.354: fmanrp_cable_fwd_dpidb_cmnparams_set()L368 Err: DPIDB_CABLE_FWD Integrated-Cable7/0/0:2
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+85DBD9D :5600E619F000+85C3FA3 :5600E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985
 +
*Dec  8 01:30:11.355: fmanrp_cable_fwd_dpidb_cmnparams_set()L368 Err: DPIDB_CABLE_FWD Integrated-Cable7/0/0:3
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+85DBD9D :5600E619F000+85C3FA3 :5600E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985
 +
*Dec  8 01:30:11.287: %CPPOSLIB-3-ERROR_NOTIFY:  F0: fman_fp_image:  fman_fp encountered an error -Traceback= 1#ae4974a47d50aa1db24b8a21c35d039c  errmsg:7F9B3F793000+1964 cpp_common_os:7F9B19425000+DB7C cpp_common_os:7F9B19425000+1B97E cpp_vnic_api_lib:7F9B1C33E000+2A0B :400000+3C0331 :400000+3BEE4A :400000+6228A0 cpp_common_os:7F9B19425000+11DB0 cpp_common_os:7F9B19425000+12496 evlib:7F9B1FD00000+8A69 evlib:7F9B1FD00000+955C :400000+3ABEAF :400000+62A8A3 c:7F9B07367000+219A5 :400000+1E10E9
 +
*Dec  8 01:30:11.288: %CPPOSLIB-3-ERROR_NOTIFY:  F0: cpp_cp_svr:  cpp_cp encountered an error -Traceback= 1#6daaae4a35a79d2fd97974584381faa4  errmsg:7FB542B53000+1964 cpp_common_os:7FB54686A000+DB7C cpp_common_os:7FB54686A000+1B97E cpp_vnic_ea_lib:7FB55CB1D000+6C09 cpp_vnic_ea_lib:7FB55CB1D000+4BAB cpp_vnic_ea_lib:7FB55CB1D000+7ACC cpp_common_os:7FB54686A000+11DB0 cpp_common_os:7FB54686A000+12496 evlib:7FB5454B1000+8A69 evlib:7FB5454B1000+955C cpp_common_os:7FB54686A000+14052 :400000+5E56 c:7FB530045000+219A5
 +
*Dec  8 01:30:11.420: %SYS-5-CONFIG_I: Configured from memory by console
 +
*Dec  8 01:30:11.718: %IOSXE_OIR-6-INSCARD: Card (rp) inserted in slot R1
 +
*Dec  8 01:30:11.718: %IOSXE_OIR-6-INSCARD: Card (fp) inserted in slot F0
 +
*Dec  8 01:30:11.718: %IOSXE_OIR-6-ONLINECARD: Card (fp) online in slot F0
 +
*Dec  8 01:30:11.863: %SYS-5-RESTART: System restarted --
 +
Cisco IOS Software [Denali], CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Experimental Version 16.5.20161114:110622 [UNKNOWN BRANCH-yuanliu2 106]
 +
Copyright (c) 1986-2016 by Cisco Systems, Inc.
 +
Compiled Mon 14-Nov-16 04:06 by yuanliu2
 +
*Dec  8 01:30:11.900: %SSH-5-ENABLED: SSH 1.99 has been enabled
 +
*Dec  8 01:30:12.607: %SYS-6-BOOTTIME: Time taken to reboot after reload =  169 seconds
 +
*Dec  8 01:30:12.614: %DYNCMD-4-CMD_DEPRECATION: The command 'platform trace runtime' is being deprecated. Please use the exec mode command 'set platform software trace' instead. Note that using this command and 'set platform software trace' together will lead to indeterministic results
 +
*Dec  8 01:30:12.736: %CVAC-4-FILE_IGNORED: Configuration file cdrom1:/ovf-env.xml is ignored: checksum unchanged since last inspected
 +
*Dec  8 01:30:12.896: %CBR_PTP-5-TOD_CHG: The TOD source changed: local freerun
 +
Queued messages:
 +
*Dec  8 01:30:50.713: %SYS-3-LOGGER_FLUSHING: System pausing to ensure console debugging output.
 +
 +
*Dec  8 01:30:47.929: %IOSXE_OIR-6-INSCARD: Card (cc) inserted in slot 2
 +
*Dec  8 01:30:47.963: %SYS-2-MALLOCFAIL: Memory allocation of 281018372 bytes failed from 0x5600ED219480, alignment 8
 +
Pool: Processor  Free: 141606784  Cause: Not enough free memory
 +
Alternate Pool: None  Free: 0  Cause: No Alternate pool
 +
-Process= "cardstate oir task", ipl= 0, pid= 216
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+BCF650E :5600E619F000+BCECE14 :5600E619F000+707A480 :5600E619F000+707A376 :5600E619F000+70739A6 :5600E619F000+6DF0B45 :5600E619F000+6DF286F :5600E619F000+6E08167 :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310
 +
*Dec  8 01:30:47.930: %CPPOSLIB-3-ERROR_NOTIFY:  F0: cpp_cp_svr:  cpp_cp encountered an error -Traceback= 1#6daaae4a35a79d2fd97974584381faa4  errmsg:7FB542B53000+1964 cpp_common_os:7FB54686A000+DB7C cpp_common_os:7FB54686A000+1B97E cpp_bqs_mgr_lib:7FB559533000+50286 cpp_bqs_mgr_lib:7FB559533000+47C07 cpp_bqs_mgr_lib:7FB559533000+260C6 cpp_bqs_mgr_lib:7FB559533000+4361D cpp_if_notif:7FB558CC2000+2418 cpp_gic_ea_lib:7FB55C2C3000+27E51 cpp_gic_ea_lib:7FB55C2C3000+2790E cpp_gic_ea_lib:7FB55C2C3000+2AE3A cpp_gic_e
 +
-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+6C47A40 :5600E619F000+7069A11 :5600E619F000+6DD5E1D :5600E619F000+6E07D4B :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310
 +
IOSD RP: 1 messages not written to btrace log file
 +
 +
 +
 +
CPP_VNIC_EVENT_PATH_BIND_A
 +
    cpp_vnic_path_bind_a
 +
    fman_hwpath_vxe_consol_if_state_update
 +
    fman_hwpath_vxe_create_a
 +
 +
 +
 +
fman-rp
 +
/ios/sys/mcp/mcprp/fman-rp/fmanrp_dpidb.c
 +
fmanrp_dpidb_create (uint ift, void *if_info,tdl_dpidbtype_e_t dpidbtype, dpidx_t dpidx)
 +
    (内部调用fmanrp_dpidb_cmnparams_set
 +
        reg_invoke_fmanrp_dpidb_use_cmnparams_platform_set
 +
        reg_add_fmanrp_dpidb_use_cmnparams_platform_set(DPIDB_TYPE_CABLE_FWD
 +
        fmanrp_cable_fwd_dpidb_cmnparams_set(type= DPIDB_TYPE_CABLE_FWD ) )
 +
 +
fman-fp
 +
fman_aom_update
 +
aom_update
 +
dpidb_create_aom_cb
 +
fman/fp/src/fman_intf_cpp.c
 +
fman_intf_cpp_create (cmn_dpidb_t *pidb) 
 +
fman_intf_cpp_cable_fwd_intf_create_a
 +
 +
cpp_gic_interface_create_a
 +
CPP_GIC_EVT_CREATE_INTERFACE_A
 +
cpp_gic_async_msg_handler
 +
create_if_cb
 +
dpidb_fp_if_create_cb
 +
 +
   
 +
 +
fman_hwpath_create_a
 +
  fman_hwpath_vxe_create_a
 +
      cpp_vnic_virt_if_create_a
 +
CPP_VNIC_EVENT_IF_CREATE_A
 +
 +
      case CPP_VNIC_EVENT_IF_CREATE_A:
 +
      case CPP_VNIC_EVENT_PATH_BIND:
 +
      case CPP_VNIC_EVENT_PATH_BIND_A:
 +
== cpp interface code path ==
 +
cpp_vnic_ipc_send_a
 +
    vnic_client_proxy_ipc_handler
 +
        vnic_proxy_vnic_create //VNIC_DEST_CABLE_SHM
 +
            cable_shm_create
 +
 +
cpp/client/intf/gic/server/cmn/src/cpp_gic_svr_if.c
 +
 +
cpp_gic_ea_if_create_a (cpp_aem_task_h task_h,
 +
310 cpp_gic_if_create_req_st *req_p)
 +
 +
fman_oir_cc_insert_a crash decode log
 +
#10 0x00007f17c4d29789 in btrace_wrapper (module_id=292, level=0 '\000', flags=BTRACE_EMIT_CHECKED, format=0xdc0b80 "(FATAL): Failed channel handle index %d for slot %d-%d card_type=%d\n") at infra/btrace/src/btrace.c:4952
 +
#11 0x00000000007b5e1c in fman_oir_cc_insert_a (pcc=0x2087570) at fman/fp/src/../vbr/src/fman_oir_vbr.c:1724
 +
#12 0x00007f17edafc7d3 in aom_update (obj_group=0x1fda148, update_issued=<optimized out>) at infra/aobjman/src/aom_api.c:3836
 +
#13 0x0000000000a2ad06 in fman_aom_update (event_ctx=..., ctx=<optimized out>, tag=0x6) at fman/fp/src/fman_main.c:184
 +
#14 0x00007f17c3ac6d96 in __evDispatch (opaqueCtx=..., opaqueEv=...) at infra/contrib/evlib/../../../contrib/bind/lib/bind/isc/eventlib.c:1487
 +
#15 0x00007f17c3ac755c in evMainLoopFair (opaqueCtx=...) at infra/contrib/evlib/../../../contrib/bind/lib/bind/isc/eventlib.c:799
 +
#16 __evMainLoop (opaqueCtx=...) at infra/contrib/evlib/../../../contrib/bind/lib/bind/isc/eventlib.c:1675
 +
#17 0x00000000007abeaf in call_evmainloop (ctx=..., hdl=<optimized out>, argc=<optimized out>, argv=<optimized out>) at fman/fp/src/fman_orch_non.c:28
 +
#18 0x0000000000a2a9b3 in main (argc=1, argv=0x7ffd9a3c3d48) at fman/fp/src/fman_main.c:842
 +
 +
 +
 +
 
== SSH Configuration ==
 
== SSH Configuration ==
 
ip ssh V1
 
ip ssh V1
第51行: 第547行:
 
  exec prompt timestamp
 
  exec prompt timestamp
 
  transport input ssh
 
  transport input ssh
 +
 +
== vCMTS ==
 +
=== xbr multi_lc user guide ===
 +
-----------  control plane  (SUP eth3  <----> LC eth0)
 +
-----------  data plane      (SUP eth4  <----> LC eth1)
 +
1. Build image
 +
git clone /auto/crdc-nsg-ws8/falcon/merge.git
 +
git checkout multi_lc
 +
abraxas-client.SignEngine -r create-ticket -b CBR -k DEV -n 500 -U yuanliu2 -P (dir binos)
 +
export BINOS_ROOT=/nobackup/yuanliu2/polaris/binos
 +
mcp_ios_precommit DIGI_SIGN=DEVELOPMENT xbr_super -j16 (dir ios/sys)
 +
 +
2. Image locations
 +
SUP Directory: /binos/linkfarm/iso-xbr
 +
LC Directory: /binos/linkfarm /iso-xbr-clc/
 +
 +
"xbr-universalk9.2016-12-09_01.48_yuanliu2.ova" is for SUP VM to setup , " xbr-universalk9clc.2016-12-09_01.53_yuanliu2.iso" is for LC VM to setup.
 +
 +
!!! Notice
 +
If you have only changed vmac/cdman/adaptor etc. code, you can build with "gmk -f Plx=-xbr TARGET=x86_64_cge7 bin-x86_64_cge7-xbr/vmac"
 +
then copy vmac to /harddisk/tmp of VM to save time.
 +
 +
3.VM setup
 +
Solusion1: manual deploy
 +
http://cmtswiki.cisco.com:8080/display/cmtspub/VM+Set+Up+for+vCMTS
 +
Solusion2: auto deploy tool ---------->USD    http://10.124.8.7/xbr (nedd to change cpu memory vlan info after auto deploy)
 +
!!!Notice the minimum resource requirements for SUP VM
 +
CPUs num: 6  Memory: 16G  network adaptor num: 5
 +
!!!Notice the minimum resource requirements for LC VM
 +
CPUs num: 4  Memory: 16G  network adaptor num: 4
 +
SUP eth3  <----> LC eth0              in the same vlan
 +
SUP eth4  <----> LC eth1              in the same vlan
 +
LC eth3  <----> vRPD eth0          in the same vlan
 +
 +
4.Config SUP VM(when set up SUP VM firstly, need to through SUP ios request platform software system to config
 +
[RP_0:~]$ cat /harddisk/rommon_vars
 +
SR_INIT_SHELL=aux_do_system_shell
 +
IP_ADDRESS=3.33.11.25
 +
IP_SUBNET_MASK=255.255.0.0
 +
DEFAULT_GATEWAY=3.33.0.1
 +
REAL_MGMTE_DEV=
 +
SR_MGMT_VRF=0
 +
[RP_0:~]$sync
 +
[RP_0:~]$ reboot
 +
Config LC VM(when set up LC VM firstly, need to through SUP binos console telnet cc0-0 to config LC )
 +
[SIP_7:~]$ cat /harddisk/rommon_vars
 +
SR_INIT_SHELL=aux_do_system_shell
 +
SLOT_NUM=7
 +
[SIP_7:~]$ cat /harddisk/vmac_config_file
 +
./vmac -nhop_mac 00:50:56:91:4C:52 -rphy_ip 3.30.1.4 -vmac_mac 00:50:56:91:2b:9d -vmac_ip 3.30.1.5 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
!!!nhop_mac is next Hop Mac which is  mac address of the RPD.
 +
!!!rphy_ip  - IP address of the RPD.  Can be a private IP address if not visible on the network.  This should be in same subnet as vmac IP address as specified by argument -vmac_ip below.
 +
!!!vmac_mac is MAC address of the SUP VM for the ethernet interface that connects  to RPD.
 +
!!!vmac_ip - IP address of the SUP VM for the ethernet interface that connects  to RPD.  This IP address is not exposed to the outside world, so  you are free to provide  a private address.
 +
!!!rphy_if -  ethernet  interface that connects  to RPHY.  The above vmac_mac MAC and  vmac_ip  IP address correspond to this interface.
 +
!!!us_mac_cpus -  core# for usmac.  US mac is pinned to this core.
 +
!!!ds_mac_cpus -  core# for dsmac. dsmac is pinned to this core.
 +
!!!debug -  debug flag. Ignore..Optional.
 +
[SIP_7:~]$sync
 +
[SIP_7:~]$reboot (before reboot need to switch to SUP VM binos to "mkdir /tmp/rp/chasfs/cc/0" only once)
 +
Config vRPD VM
 +
directly use USD to deploy
 +
 +
SUP IOS config:yuanliu2@10.75.12.12:~/xbr_multi_lc.cfg
 +
Router#copy bootflash:xbr_multi_lc.cfg startup-config
 +
!!!must have config card 0/0 xBR
 +
!!!interface Te0/0/0
 +
mac-address 0050.56a4.055c        -------------vmac_mac 00:50:56:91:2b:9d
 +
ip address 3.35.1.1 255.255.255.0  ------------vmac_ip 3.30.1.5
 +
ip mtu 1500
 +
no mop enabled
 +
no mop sysid
 +
 +
5. Some workarounds (reboot sequence)
 +
!!!Once reboot SUP, need to do following step
 +
[Router:~]$ mkdir /tmp/rp/chasfs/cc/7    # Card (cc) inserted in slot 7
 +
 +
!!!then reboot LC
 +
 +
6. Debug solution
 +
!!! btdecode /tmp/cc/7/trace/
 +
                  /tmp/rp/
 +
                  /tmp/fp/
 +
                  /harddisk/tracelogs/
 +
If build vmac or other processes individually, logs can't be decoded, need add log code using fprintf to log into your own files.
 +
!!! decode /harddisk/core/
 +
 +
7. Bring Virtual CM Online
 +
Make sure all listed files available:
 +
 +
[RP_0:/harddisk]$ ls
 +
basic11.cm <<< CM configuration file for All-in-One
 +
xbr_multi_lc.cfg <<< CMTS startup configuration
 +
 +
Check running config
 +
 +
* interface Te0/0/0
 +
* cable rpd 1
 +
* Downstream controller & channel parameters.
 +
* Upstream controller & channel parameters.
 +
* MD interface, Bundle interface, IC interface.
 +
* DHCP & CM config file (all-in-one is used to bring CM online).
 +
* WB interface, Fiber Node.
 +
 +
 +
Check whether MD interface, WB interface, Bundle interface are in UP status:
 +
Router#sh ip int b
 +
Interface              IP-Address      OK? Method Status                Protocol
 +
Cable0/0/0            Bundle1        YES unset  up                    up   
 +
GigabitEthernet2      unassigned      YES NVRAM  up                    up   
 +
GigabitEthernet3      unassigned      YES NVRAM  administratively down down 
 +
Te0/0/0                3.35.1.1        YES NVRAM  up                    up   
 +
Do0/0/0:0              Bundle1        YES unset  up                    up   
 +
Wideband-Cable0/0/0:0  Bundle1        YES unset  up                    up   
 +
Do0/0/0:1              Bundle1        YES unset  up                    up   
 +
Do0/0/0:2              Bundle1        YES unset  up                    up   
 +
Do0/0/0:3              Bundle1        YES unset  up                    up   
 +
 +
Check LC vmac_config_file mac and ip
 +
[SIP_7:~]$ cat /harddisk/vmac_config_file
 +
./vmac -nhop_mac 00:50:56:91:4C:52 -rphy_ip 3.30.1.4 -vmac_mac 00:50:56:91:2b:9d -vmac_ip 3.30.1.5 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
 +
单独打包LC
 +
cd /nobackup/zhliu2/vbr_vm/binos && IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr IMAGE_VARIANT=clc release-binos
 +
单独打包SUP
 +
cd /nobackup/zhliu2/vbr_vm/binos && IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr release-binos
 +
 +
=== ptp ===
 +
vcmts config
 +
1.ptp config
 +
[RP_0:~]$ cat /harddisk/rommon_vars
 +
SR_INIT_SHELL=aux_do_system_shell
 +
IP_ADDRESS=3.33.11.23
 +
IP_SUBNET_MASK=255.255.0.0
 +
DEFAULT_GATEWAY=3.33.0.1
 +
REAL_MGMTE_DEV=
 +
SR_MGMT_VRF=0
 +
RPHY_IF=Gi2
 +
CABLE_PTP_IF=eth3
 +
CABLE_PTP_IP=3.30.222.2
 +
CABLE_PTP_MASK=255.255.0.0
 +
CABLE_PTP_SERVER=192.168.222.222
 +
refer:http://cmtswiki.cisco.com:8080/display/cmtspub/PTP+setup+in+vCMTS+VM+and+server
 +
[Router:~]$ cat /harddisk/ptpd2.conf 
 +
ptpengine:interface=eth3
 +
ptpengine:domain=0
 +
ptpengine:preset=slaveonly
 +
ptpengine:ip_mode=unicast
 +
ptpengine:unicast_negotiation=y
 +
ptpengine:unicast_destinations=192.168.222.222
 +
ptpengine:log_delayreq_interval=0
 +
global:dump_packets=N
 +
global:log_status=y
 +
global:status_file=/bootflash/ptpd2.status
 +
global:log_file=/bootflash/ptpd2.log
 +
global:log_file_max_size=256
 +
ptpengine:vbr_ignore_utc_offset=y
 +
ptpengine:utc_offset=0
 +
 +
2.vmac config
 +
[RP_0:~]$ cat /harddisk/vmac_config_file
 +
./vmac -nhop_mac 00:04:9F:00:09:13 -rphy_ip 3.35.1.4 -vmac_mac 00:50:56:a4:13:15 -vmac_ip 3.35.1.1  -rphy_if Gi2 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
refer:http://cmtswiki.cisco.com:8080/display/cmtspub/vmac+related+setup
 +
3.
 +
cable rpd 1
 +
identifier 0004.9f00.0913
 +
core-interface Gi2
 +
  principal
 +
  rpd-ds 0 downstream-cable 0/0/0 profile 3
 +
  rpd-us 0 upstream-cable 0/0/0 profile 3
 +
r-dti 1
 +
rpd-event profile 0
 +
!
 +
ptp r-dti 1
 +
ptp-domain 0
 +
clock-port 1
 +
  ethernet 1
 +
  clock source ip 192.168.222.222 gateway ip 3.35.222.222              /*  ip address of PTP server  and ip address of RPD gateway (vhh0 in my case uses local ip address of RPD)
 +
!
 +
0050.5691.2540 
 +
 +
 +
rpd config
 +
1.ptp config
 +
root@00049F000913:/# cat /bootflash/ptp.conf
 +
[PORT_ID] 0
 +
[MASTER_IP] 192.168.222.222
 +
[GATEWAY_IP] 3.35.222.222
 +
 +
R-PHY#show ptp clock 0 state
 +
apr state      : PHASE_LOCK
 +
clock state    : SUB_SYNC
 +
current tod    : 1479943078  Wed Nov 23 23:17:58 2016
 +
active stream  : 1
 +
==stream    1  :
 +
  port id      :                0
 +
  master ip    :  192.168.222.222
 +
  stream state  :      PHASE_LOCK
 +
  Master offset :              44
 +
  Path    delay :            -1671
 +
  Forward delay :            -1627
 +
  Reverse delay :            -1695
 +
  Freq offset  :          -455301
 +
  1Hz  offset  :              14
 +
refer: http://cmtswiki.cisco.com:8080/display/cmtspub/PTP+config+in+RPD
 +
 +
 +
ssh -l root 3.35.1.4
 +
00:04:9F:00:09:13/3.35.1.4
 +
en
 +
shell
 +
upgradeuboot.sh
 +
tftp -r /tftpboot/RPD_ECE3-20161109_070001.itb -g 20.1.0.33
 +
tftp -r /tftpboot/RPD_seres_rpd_20170112_010001.itb -g 3.35.11.1
 +
tftp a0000000 3.33.11.1:/tftpboot/RPD_seres_rpd_20160912_010001.itb && bootm
 +
tftp a0000000 3.33.11.1:/tftpboot/RPD_ECE3-20161110_070002.itb && bootm
 +
ifconfig eth2 3.33.11.5 netmask 255.255.0.0
 +
tftp -r tftpboot/RPD_ECE3-20161110_070002.itb -g 3.33.11.1
 +
 +
Check uboot version
 +
root@RPD00049f300255:/# strings -n 30 /dev/mtd5 | grep ^U-Boot
 +
U-Boot 2016.01 (Sep 23 2016 - 03:19:57 +0800)
 +
Check CPLD version
 +
root@00049F300249:/# rpdcpld -g 0
 +
address = 0x0, value = 0x235
 +
ns-cBR-05#sho running-config | sec ptp
 +
ptp clock ordinary domain 0 
 +
servo tracking-type R-DTI
 +
clock-port slave-from-903 slave
 +
  delay-req interval -4
 +
  sync interval -5
 +
  sync one-step
 +
  transport ipv4 unicast interface Lo1588 negotiation
 +
  clock source 192.168.222.222
 +
ptp r-dti 20
 +
ptp-domain 0
 +
clock-port 22
 +
  ethernet 1
 +
  clock source ip 192.168.222.222 gateway ip 93.2.40.93
 +
ns-cBR-05#sho ru
 +
ns-cBR-05#sho running-config | sec prd
 +
ns-cBR-05#
 +
ns-cBR-05#sho running-config | sec rpd
 +
  virtual-arpd 1
 +
    source-id 1
 +
    nc 3.3.3.3 udp-port 100
 +
    ip 32.32.32.32 255.255.255.0
 +
!
 +
cable rpd 1
 +
identifier 0004.9f00.0919
 +
no rpd-ds 0 mute
 +
no rpd-ds 0 shutdown
 +
core-interface Te1/1/0
 +
  principal
 +
  rpd-ds 0 downstream-cable 1/0/0 profile 128
 +
  rpd-us 0 upstream-cable 1/0/0 profile 4
 +
r-dti 20
 +
rpd-event profile 0
 +
 +
ptp clock ordinary domain 0 
 +
servo tracking-type R-DTI
 +
clock-port slave-from-903 slave
 +
  delay-req interval -4
 +
  sync interval -5
 +
  sync one-step
 +
  transport ipv4 unicast interface Lo1588 negotiation
 +
  clock source 33.33.158.158
 +
ptp r-dti 1
 +
ptp-domain 0
 +
clock-port 22
 +
  ethernet 1
 +
  clock source ip 33.33.158.158 gateway ip 60.10.10.20
 +
clock-port 23
 +
  ethernet 1
 +
  transport ipv6
 +
  clock source ipv6 2001:10:74:54::1 gateway ipv6 2001:60:10:13::27
 +
=== multi rpd ===
 +
dpic_xge_ipaddr_change---------------ubrcce_cli_xfer_send_show_cmd_with_params_cdm( NULL, slot, 0, TRUE, 0, UBR_CLI_XFER_CDM_APPL_ID_DPIC_XGE_CFG, &appl_param)
 +
ubrcce_dsjib_cli_xfer_dpic_mtu_cfg_handler
 +
vbr_ds_jib_encap_ch_cfg
 +
 +
dsjib_vmac_ds_ch_encap_set_and_send
 +
 +
depi_ch_encap_cfg
 +
 +
problem:
 +
 +
1.session_id is same in different rpd, session_id 怎么分配的
 +
 +
 +
 +
1. RfChannelIndex
 +
2. vmac 只建立了chan------mac/ip vbr_ds_jib_encap_ch_cfg(chan, depi_encap->sess_id[chan],
 +
                                  depi_encap->add_vlan,
 +
                                  depi_encap->vlan_id,
 +
                                  &depi_encap->mac_da[0],
 +
                                  depi_encap->ipv4_da);
 +
 +
3. abcdefghijklmn:error rsp from vmac, type:13, status; 0, index:8
 +
4. DMP_TDL_RT_RX:abcdefghijklmnopabcdefghij: Write Sync Cfg FAILED
 +
5. ubr_map_builder_scqam_serve_periodic_ucd failed to send UCD on chan 0:0
 +
6. 删除rpd以后vmac的配置没有变
 +
 +
 +
dsjib 在查找tunnel_id是根据什么索引的----------jib_chan_id(dcm管理)
 +
 +
Desktop
 +
 +
 +
 +
encap_ip_sa_cfg
 +
reboot sup lc reboot
 +
 +
lc copy image
 +
=== vbr_poloris_build ===
 +
git clone /auto/crdc-nsg-ws8/falcon/polaris.git
 +
git checkout new_cardtype
 +
cd binos
 +
abraxas-client.SignEngine -r create-ticket -b fishbowl -k DEV -n 20 -U yuanliu2 -P <soft-token>
 +
cd ios/sys
 +
export BINOS_ROOT=/nobackup/yuanliu2/polaris/binos
 +
mcp_ios_precommit DIGI_SIGN=DEVELOPMENT xbr_super -j16
 +
scp xbr-universalk9clc.2016-10-24_23.58_yuanliu2.ova yuanliu2@10.74.12.33:/tftpboot/yuanliu2
 +
 +
 +
 +
单独build process
 +
gmk -f Plx=-xbr TARGET=x86_64_cge7 bin-x86_64_cge7-xbr/shm_vnic_adaptor_cc
 +
put shm_vnic_adaptor_cc into /harddisk/tmp
 +
单独package SUP
 +
IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr release-binos
 +
单独package LC
 +
cd /nobackup/hongtye/vbr_vm/binos && IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr IMAGE_VARIANT=clc release-binos
 +
 +
1.  If your code change related with rphyman or cdman, please run this build under binos::
 +
Rphyman change:gmk TARGET=mips64_cge7 cable/cdman/all-mips64_cge7-ubr -j32
 +
Cdman change:  gmk TARGET=x86_64_cge7 cable/rphy/all-x86_64_cge7-ubr -j32
 +
Or under /binos/cable/rphy: gmk -f Plx:=-ubr TARGET=x86_64_cge7 bin-x86_64_cge7-ubr/rphyman -j16
 +
Under /binos/cable/cdman: gmk -f Plx:=-ubr TARGET=mips64_cge7 bin-mips64_cge7-ubr/cdman -j16
 +
2.  For IOS change on SUP, please run make xxx.o under ios/sys/obj-x86_64bi-ubr-iosd. (xxx.o is the obj file that you made change for xxx.c)
 +
 +
== Boot image ==
 +
boot harddisk:cbrsup-universalk9.BLD_V166_THROTTLE_LATEST_20170518_032244_2.SSA.bin
 +
 +
CRDC-NG-E09#dir harddisk:d31_sreg_nightly.cfg
 +
== boot rpd in rom mode ==
 +
=> ext2ls mmc 0:1
 +
<DIR>      4096 .
 +
<DIR>      4096 ..
 +
<DIR>      16384 lost+found
 +
              20 .seres.date
 +
        31371944 RPD_seres_rpd_20170109_010001.itb
 +
<SYM>        33 imagea
 +
<SYM>        33 imageb
 +
            3111 init.seres.log
 +
<DIR>      4096 znie
 +
        31373484 RPD_seres_rpd_20170110_010002.itb
 +
        31374024 seres_rpd_jianyzha_0111.itb
 +
              0 RPD_seres_rpd_20170113_010001.itb
 +
            1444 dpll_check_log
 +
              0 apll_check_log
 +
=> sboot RPD_seres_rpd_20170110_010002.itb
 +
**************************************
 +
************ boot RPD_seres_rpd_20170110_010002.itb *************
 +
**************************************
 +
31373484 bytes read in 1441 ms (20.8 MiB/s)
 +
After it reboot,
 +
shell
 +
root@00049F330013:/# cd bootflash/
 +
root@00049F330013:/bootflash# ln -sf RPD_seres_rpd_20170110_010002.itb imagea
 +
-sf RPD_seres_rpd_20170110_010002.itb imagebroot@00049F330013:/bootflash# ln -sf RPD_seres_rpd_20170110_010002.itb imageb
 +
root@00049F330013:/bootflash#
 +
root@00049F330013:/bootflash#
 +
root@00049F330013:/bootflash# ls -l
 +
-rw-r--r--    1 root    root      31371944 Jan  8 19:00 RPD_seres_rpd_20170109_010001.itb
 +
-rw-r--r--    1 root    root      31373484 Jan 14 00:58 RPD_seres_rpd_20170110_010002.itb
 +
-rw-r--r--    1 root    root            0 Jan 16 21:29 RPD_seres_rpd_20170113_010001.itb
 +
-rw-------    1 root    root            0 Jan 16 21:32 apll_check_log
 +
-rw-------    1 root    root          1444 Jan 16 21:32 dpll_check_log
 +
lrwxrwxrwx    1 root    root            33 Jan 19 06:03 imagea -> RPD_seres_rpd_20170110_010002.itb
 +
lrwxrwxrwx    1 root    root            33 Jan 19 06:03 imageb -> RPD_seres_rpd_20170110_010002.itb
 +
-rw-r--r--    1 root    root          3111 Jan 16 21:36 init.seres.log
 +
drwxr-xr-x    2 root    root        16384 Oct 21 01:48 lost+found
 +
-rw-r--r--    1 root    root      31374024 Jan 15 22:43 seres_rpd_jianyzha_0111.itb
 +
drwxr-xr-x    2 root    root          4096 Jan 18 00:45 znie
 +
root@00049F330013:/bootflash#
 +
 +
binos/cable/cdman/module/ubr-infra/ump/src/ubr_ump_cntrl_vbr.c
 +
 +
== packet format ==
 +
=== arp packet ===
 +
  0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0010  01 01 00 00 00 0e 00 3c 00 5c 00 00 20 0a 00 00  .......<.\.. ...
 +
  0020  00 4c 85 02 00 00 04 00 00 00 00 00 00 00 00 00  .L..............
 +
  0030  ff ff ff ff ff ff 00 1e bd 87 d0 00 08 06 00 01  ................
 +
  0040  08 00 06 04 00 01 00 1e bd 87 d0 00 03 23 01 01  .............#..
 +
  0050  00 00 00 00 00 00 03 23 01 07 00 00 00 00 00 00  .......#........
 +
  0060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0070  00 00 00 00 00 00 00 00 00 00 00 00              ............
 +
 +
arp request
 +
ff ff ff ff ff ff 00 50 56 a4 05 5c 08 06 00 01
 +
08 00 06 04 00 01 00 50 56 a4 05 5c 03 23 01 01
 +
00 00 00 00 00 00 03 23 01 07 00 00 00 00 00 00
 +
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 +
00 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00
 +
80 ed 8a 79 6a 7f 00 00 c0 ec 8a 79 6a 7f 00 00
 +
4c f4 a3 ea 6a 7f 00 00 00 00 00 00
 +
scp /harddisk/core/RP_0_qfp-ucode-vbr_30932_20170216-175022-Universal.core.gz yuanliu2@3.33.11.1:~/
 +
en
 +
conf t
 +
no boo sys
 +
boo sys bootflash:xbr-universalk9.2017-04-01_03.15_yuanliu2.bin
 +
end
 +
wr
 +
 +
0000  01 01 00 00 00 0e 00 3c 00 5c 00 00 20 0a 00 00  .......<.\.. ...
 +
  0010  00 4c 85 02 00 00 04 00 00 00 00 00 00 00 00 00  .L..............
 +
  0020  ff ff ff ff ff ff 00 50 56 a4 05 5c 08 06 00 01  .......PV..\....
 +
  0030  08 00 06 04 00 01 00 50 56 a4 05 5c 03 23 01 01  .......PV..\.#..
 +
  0040  00 00 00 00 00 00 03 23 01 07 00 00 00 00 00 00  .......#........
 +
  0050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0060  00 00 00 00 00 00 00 00 00 00 00 00              ............
 +
 +
 +
arp reply
 +
00 50 56 a4 05 5c 00 50 56 91 25 40 08 06 00 01
 +
08 00 06 04 00 02 00 50 56 91 25 40 03 23 01 07
 +
00 50 56 a4 05 5c 03 23 01 01 00 00 00 00 00 00
 +
00 00 00 00 00 00 00 00 00 00 00 00
 +
 +
  0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0010  00 4c 15 68 00 00 00 00 00 00 00 00 00 01 00 00  .L.h............
 +
  0020  00 50 56 a4 05 5c 00 50 56 91 25 40 08 06 00 01  .PV..\.PV.%@....
 +
  0030  08 00 06 04 00 02 00 50 56 91 25 40 03 23 01 07  .......PV.%@.#..
 +
  0040  00 50 56 a4 05 5c 03 23 01 01 00 00 00 00 00 00  .PV..\.#........
 +
  0050  00 00 00 00 00 00 00 00 00 00 00 00              ............
 +
ping
 +
          00 00 6c b7 00 00 00 1e bd 80 f2 19 08 00 45 00  ..l...........E.
 +
  0040  00 64 00 6b 00 00 ff 01 f3 28 64 01 00 01 64 01  .d.k.....(d...d.
 +
  0050  00 02 08 00 47 f2 00 29 00 04 00 00 00 00 00 15  ....G..)........
 +
  0060  36 16 ab cd ab cd ab cd ab cd ab cd ab cd ab cd  6...............
 +
  0070  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 +
  0080  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 +
  0090  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 +
  00a0  ab cd 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00b0  00 00
 +
ds_jib_bg_ch_cfg
 +
dhcp offer
 +
c0/0/0
 +
  0000  01 12 00 00 00 95 f4 10 74 10 00 02 00 00 00 00  ........t.......
 +
  0010  01 64 00 00 00 5e 04 00 00 00 00 00 00 00 00 00  .d...^..........
 +
  0020  ff ff ff ff ff ff 00 1e bd 80 f2 19 08 00 45 00  ..............E.
 +
  0030  01 46 00 50 00 00 ff 11 56 55 64 01 00 01 ff ff  .F.P....VUd.....
 +
  0040  ff ff 00 43 00 44 01 32 fb ed 02 01 06 00 00 00  ...C.D.2........
 +
  0050  40 25 00 00 80 00 00 00 00 00 64 01 00 02 64 01  @%........d...d.
 +
  0060  00 01 00 00 00 00 00 00 25 40 00 00 00 00 00 00  ........%@......
 +
  0070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00a0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00b0  00 00 00 00 00 00 62 61 73 69 63 31 31 2e 63 6d  ......basic11.cm
 +
  00c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0130  00 00 00 00 00 00 63 82 53 63 35 01 02 36 04 64  ......c.Sc5..6.d
 +
  0140  01 00 01 33 04 00 01 4e 86 3a 04 00 00 a7 43 3b  ...3...N.:....C;
 +
  0150  04 00 01 24 b0 01 04 ff ff 00 00 04 04 64 01 00  ...$.........d..
 +
  0160  01 02 04 ff ff 8f 80 07 04 64 01 00 01 03 04 64  .........d.....d
 +
  0170  01 00 01 ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0180  00 00 00 00                                      ....
 +
 +
 +
c0/0/1
 +
  0000  01 12 00 00 00 95 00 00 00 00 00 08 00 00 00 00  ................
 +
  0010  01 64 00 00 00 60 98 00 00 00 00 00 00 00 00 00  .d...`..........
 +
  0020  ff ff ff ff ff ff 00 1e bd 80 f2 19 08 00 45 00  ..............E.
 +
  0030  01 46 08 fa 00 00 ff 11 4d ab 64 01 00 01 ff ff  .F......M.d.....
 +
  0040  ff ff 00 43 00 44 01 32 1b f3 02 01 06 00 0a 00  ...C.D.2........
 +
  0050  b7 6c 00 00 80 00 00 00 00 00 64 01 00 2d 64 01  .l........d..-d.
 +
  0060  00 01 00 00 00 00 00 00 6c b7 00 0a 00 00 00 00  ........l.......
 +
  0070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00a0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00b0  00 00 00 00 00 00 62 61 73 69 63 31 31 2e 63 6d  ......basic11.cm
 +
  00c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0130  00 00 00 00 00 00 63 82 53 63 35 01 02 36 04 64  ......c.Sc5..6.d
 +
  0140  01 00 01 33 04 00 01 51 80 3a 04 00 00 a8 c0 3b  ...3...Q.:.....;
 +
  0150  04 00 01 27 50 01 04 ff ff 00 00 04 04 64 01 00  ...'P........d..
 +
  0160  01 02 04 ff ff 8f 80 07 04 64 01 00 01 03 04 64  .........d.....d
 +
  0170  01 00 01 ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0180  00 00 00 00                                      ....
 +
 +
 +
0
 +
./vmac -nhop_mac 00:50:56:91:25:40 -rphy_ip 3.35.1.7 -vmac_mac 00:50:56:a4:05:5c -vmac_ip 3.35.1.1  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
1
 +
./vmac -nhop_mac 00:50:56:91:6c:b7 -rphy_ip 3.35.2.8 -vmac_mac 00:50:56:a4:19:df -vmac_ip 3.35.2.2  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
2
 +
./vmac -nhop_mac  00:50:56:91:31:df -rphy_ip 3.35.3.8 -vmac_mac 00:50:56:a4:3c:bb -vmac_ip 3.35.3.2  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
3
 +
./vmac -nhop_mac  00:50:56:91:76:ac -rphy_ip 3.35.4.8 -vmac_mac  00:50:56:a4:6b:ff -vmac_ip 3.35.4.2  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
6
 +
./vmac -nhop_mac  00:50:56:91:77:81 -rphy_ip 3.35.7.8 -vmac_mac  00:50:56:a4:09:bb -vmac_ip 3.35.7.2  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
7
 +
./vmac -nhop_mac  00:50:56:91:0f:5e -rphy_ip 3.35.8.8 -vmac_mac  00:50:56:a4:4d:a1 -vmac_ip 3.35.8.2  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
8
 +
./vmac -nhop_mac  00:50:56:91:63:00 -rphy_ip 3.35.9.8 -vmac_mac 00:50:56:a4:45:91 -vmac_ip 3.35.9.2  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
9
 +
./vmac -nhop_mac  00:50:56:a4:15:28 -rphy_ip 3.35.0.8 -vmac_mac 00:50:56:a4:55:f6 -vmac_ip 3.35.0.2  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
 +
SR_INIT_SHELL=aux_do_system_shell
 +
IP_ADDRESS=3.33.11.25
 +
IP_SUBNET_MASK=255.255.0.0
 +
DEFAULT_GATEWAY=3.33.0.1
 +
REAL_MGMTE_DEV=
 +
SR_MGMT_VRF=0
 +
 +
./vmac -nhop_mac 00:50:56:91:25:40 -rphy_ip 3.35.1.7 -vmac_mac 00:50:56:a4:1f:82 -vmac_ip 3.35.1.1  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
./vmac -nhop_mac 00:00:00:00:00:00 -rphy_ip 0.0.0.0 -vmac_mac 00:00:00:00:00:00 -vmac_ip 0.0.0.0  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
 +
no rpd-ds 0 downstream-cable 0/0/7 profile 3
 +
no rpd-us 0 upstream-cable 0/0/7 profile 3
 +
rpd-ds 0 downstream-cable 0/0/0 profile 3
 +
rpd-us 0 upstream-cable 0/0/0 profile 3
 +
 +
 +
service log backtrace
 +
interface Te1/0/0
 +
mac-address 0050.56a4.19df
 +
ip address 3.35.2.2 255.255.255.0
 +
 +
cable rpd 2
 +
identifier 0050.5691.6cb7
 +
no rpd-ds 0 mute
 +
no rpd-ds 0 shutdown
 +
core-interface Te0/0/0
 +
  principal
 +
  rpd-ds 0 downstream-cable 1/0/0 profile 3
 +
  rpd-us 0 upstream-cable 1/0/0 profile 3
 +
rpd-event profile 0
 +
!
 +
 +
binos/build/manifest/CGE7/vxe/vbr/
 +
 +
Not found core info for rpd 0050.5691.76ac local_addr 3.35.4.2
 +
 +
IPSEC_OK--------te0/0/0 no shutdown
 +
 +
reboot
 +
  0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0010  00 50 56 91 25 40 00 50 56 a4 05 5c 08 06 00 01  .PV.%@.PV..\....
 +
  0020  08 00 06 04 00 02 00 50 56 a4 05 5c 03 23 01 01  .......PV..\.#..
 +
  0030  00 50 56 91 25 40 03 23 01 07 00 00 00 00 00 00  .PV.%@.#........
 +
  0040  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  0050  00 00 00 00 00 00 00 00 00 00 00 00              ............
 +
 +
MAC Address    IP Address      I/F          MAC              Prim  RxPwr  Timing Num I
 +
                                            State            Sid  (dBmv) Offset CPE P
 +
0000.2540.0001 100.1.0.3      C0/0/1/U0    online            17    0.00  2083  1  N
 +
0000.2540.0000 100.1.0.2      C0/0/1/U0    online            18    0.00  2083  1  N
 +
0000.2540.0003 100.1.0.5      C0/0/1/U0    online            19    0.00  2083  1  N
 +
0000.2540.0002 100.1.0.4      C0/0/1/U0    online            20    0.00  2083  1  N
 +
 +
Router#scm
 +
                                                                                      D
 +
MAC Address    IP Address      I/F          MAC              Prim  RxPwr  Timing Num I
 +
                                            State            Sid  (dBmv) Offset CPE P
 +
0000.2540.0000 100.1.0.2      C0/0/2/U0    w-online          19    0.00  2083  0  N
 +
0000.2540.0001 100.1.0.3      C0/0/2/U0    w-online          20    0.00  2083  0  N
 +
0000.2540.0003 100.1.0.5      C0/0/2/U0    w-online          21    0.00  2083  0  N
 +
0000.2540.0002 100.1.0.4      C0/0/2/U0    w-online          22    0.00  2083  0  N
 +
0000.2540.0007 100.1.0.9      C0/0/2/U0    w-online          23    0.00  2083  0  N
 +
0000.2540.0006 100.1.0.8      C0/0/2/U0    w-online          24    0.00  2083  0  N
 +
0000.2540.0005 100.1.0.7      C0/0/2/U0    w-online          25    0.00  2083  0  N
 +
0000.2540.0004 100.1.0.6      C0/0/2/U0    w-online          26    0.00  2083  0  N
 +
0000.2540.0008 100.1.0.17      C0/0/2/U0    w-online          27    0.00  2083  0  N
 +
0000.2540.0009 100.1.0.16      C0/0/2/U0    w-online          28    0.00  2083  0  N
 +
0000.2540.000f 100.1.0.18      C0/0/2/U0    w-online          29    0.00  2083  0  N
 +
0000.2540.000e 100.1.0.19      C0/0/2/U0    w-online          30    0.00  2083  0  N
 +
0000.2540.000b 100.1.0.20      C0/0/2/U0    w-online          31    0.00  2083  0  N
 +
0000.2540.000a 100.1.0.21      C0/0/2/U0    w-online          32    0.00  2083  0  N
 +
0000.2540.000d 100.1.0.14      C0/0/2/U0    w-online          33    0.00  2083  0  N
 +
0000.2540.000c 100.1.0.15      C0/0/2/U0    w-online          34    0.00  2083  0  N
 +
 +
 +
Router#scm
 +
                                                                                      D
 +
MAC Address    IP Address      I/F          MAC              Prim  RxPwr  Timing Num I
 +
                                            State            Sid  (dBmv) Offset CPE P
 +
0000.2540.0001 100.1.0.3      C0/0/7/U0    w-online          17    0.00  2083  1  N
 +
0000.2540.0000 100.1.0.2      C0/0/7/U0    w-online          18    0.00  2083  1  N
 +
0000.2540.0007 100.1.0.9      C0/0/7/U0    w-online          19    0.00  2083  1  N
 +
0000.2540.0006 100.1.0.8      C0/0/7/U0    w-online          20    0.00  2083  1  N
 +
0000.2540.0002 100.1.0.4      C0/0/7/U0    w-online          21    0.00  2083  1  N
 +
0000.2540.0003 100.1.0.5      C0/0/7/U0    w-online          22    0.00  2083  1  N
 +
0000.2540.0005 100.1.0.7      C0/0/7/U0    w-online          23    0.00  2083  1  N
 +
0000.2540.0004 100.1.0.6      C0/0/7/U0    w-online          24    0.00  2083  1  N
 +
0000.2540.0009 100.1.0.16      C0/0/7/U0    w-online          25    0.00  2083  1  N
 +
0000.2540.0008 100.1.0.17      C0/0/7/U0    w-online          26    0.00  2083  1  N
 +
0000.2540.000f 100.1.0.18      C0/0/7/U0    w-online          27    0.00  2083  1  N
 +
0000.2540.000a 100.1.0.21      C0/0/7/U0    w-online          28    0.00  2083  1  N
 +
0000.2540.000b 100.1.0.20      C0/0/7/U0    w-online          29    0.00  2083  1  N
 +
0000.2540.000d 100.1.0.14      C0/0/7/U0    w-online          30    0.00  2083  1  N
 +
0000.2540.000c 100.1.0.15      C0/0/7/U0    w-online          31    0.00  2083  1  N
 +
0000.2540.000e 100.1.0.19      C0/0/7/U0    w-online          32    0.00  2083  1  N
 +
 +
 +
=== ping packet ===
 +
 +
  0000  00 00 00 41 00 00 00 00 00 00 00 00 00 00 00 00  ...A............
 +
  0010  41 00 81 54 42 00 00 00 00 02 00 07 24 00 01 01  A..TB.......$...
 +
  0020  00 82 00 02 00 0b 80 00 00 00 00 00 00 00 00 00  ................
 +
  0030  00 00 4c 52 00 00 00 1e 7a d1 c1 19 08 00 45 00  ..LR....z.....E.
 +
  0040  00 64 09 12 00 00 ff 01 ea 7a 64 01 00 01 64 01  .d.......zd...d.
 +
  0050  00 09 08 00 ce 88 00 53 00 03 00 00 00 00 04 5a  .......S.......Z
 +
  0060  ab 11 ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 +
  0070  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 +
  0080  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 +
  0090  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 +
  00a0  ab cd 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 +
  00b0  00 00                                            ..
 +
slot: 2
 +
dest_ip: 10.10.0.2
 +
 +
== UCS info ==
 +
The 4 pcs UCS have installed, 2 pcs on rack U09 and 2 pcs on rack P03. Please see below for details.
 +
 +
GW: 10.75.12.1
 +
Vlan: 53
 +
Login: admin/cisco123!  root/cisco123!
 +
 +
Rack  IP address                                                                                                                                                   
 +
P03    10.75.12.3/25     
 +
P03    10.75.12.5/25
 +
U09    10.75.12.7/25     
 +
          10.75.12.10-13/28 vlan 53 gateway 10.75.12.1
 +
          route add default gw  10.75.12.1
 +
          netstat -rn    看下路由
 +
 +
          DNS:64.104.123.144/cisco.com
 +
          proxy:proxy.esl.cisco.com
 +
U09    10.75.12.9/25
 +
 +
10.79.41.74/administrator@vsphere.local /Cisco123!
 +
/home/jianyzha/workspace/OpenRPD_deploy/vvm/www/vdep/vmdk
 +
telnet 172.22.75.178 10001
 +
telnet 172.22.75.178 10002 creg vbr
 +
 +
 +
RPD   
 +
1.console :  telnet sh-cable-con-16 2010
 +
2.eth :          peicheng switch 43   第一次下载版本
 +
3.光口:
 +
 +
30 ------------- node 
 +
41  -------------18( peicliu-ucs-sw)
 +
U07-Switch(sh-cable-con-15 2096)
 +
peicliu-ucs-sw(sh-cable-con-15 2086)
 +
F04SW:
 +
Telnet 80.4.1.21 then telnet 30.1.1.30  admin/lab
 +
e1/41 connect to ucs switch
 +
e1/30 can be used for your team’s node.
 +
ns-F04-SW# sho running-config interface ethernet 1/41
 +
!Command: show running-config interface Ethernet1/41
 +
!Time: Thu Jan  5 10:44:48 2017
 +
version 6.0(2)U3(7)
 +
interface Ethernet1/41
 +
  description Connect-ECS-VRPD
 +
  switchport
 +
  switchport mode trunk
 +
  switchport trunk allowed vlan 511
 +
  speed 1000
 +
BRs
 +
Witten Xia
 +
From: Witten <wixia@cisco.com>
 +
Date: Thursday, 5 January, 2017 9:48 am
 +
To: "Yuan Liu (yuanliu2)" <yuanliu2@cisco.com>
 +
Cc: "Jun Zhang (jzhang2)" <jzhang2@cisco.com>
 +
Subject: [DOC]here are the documentation about bring up the node and get it online.
 +
Hi Liu Yuan,
 +
here are the documentation about bring up the node and get it online. Please check the wiki and attached file.
 +
http://cmtswiki.cisco.com:8080/display/battlestar/How+to+boot+up+Node
 +
For ppt, please just check slide 7,  slid 8-10 maybe are too old and commands are changed.
 +
BRs
 +
Witten Xia
 +
== us config path  ==
 +
ios-d ------->cdman------>rphy-man----GCP---->node
 +
 +
gcp_send_us_scqam_cfg
 +
|
 +
|
 +
rphy_gcp_fsm_send_us_scqam_cfg
 +
|
 +
|
 +
ubripc_send_cdman_2_rphyman_msg
 +
|
 +
|
 +
ubr_ucd_send_to_rphy
 +
|
 +
|
 +
ubr_ump_mt_handle_msg_event
 +
|
 +
|
 +
ubr_ump_send_rphy_ucd_msg_to_mt
 +
|
 +
|
 +
ubr_map_builder_scqam_send_ucd_msg
 +
 +
bttail  /tmp/fp/trace/cpp_cp_F0
 +
 +
ifconfig eth0 3.3.3.111 netmask 255.0.0.0
 +
scp /harddisk/core/RP_0_cpp_cp_svr_908_20170309-214159-Universal.core.gz  jianyzha@3.3.3.7:~/
 +
 +
 +
10.124.8.75 xbr2
 +
10.124.8.30  jianyzha :lab123 /home/jianyzha/xbr
 +
SR_INIT_SHELL=aux_do_system_shell
 +
IP_ADDRESS=3.3.3.11
 +
IP_SUBNET_MASK=255.255.255.0
 +
DEFAULT_GATEWAY=3.3.3.7
 +
REAL_MGMTE_DEV=
 +
SR_MGMT_VRF=0
 +
 +
 +
./vmac -nhop_mac 00:00:14:af:00:00 -rphy_ip 3.13.0.3 -vmac_mac 00:0c:29:fc:31:19  -vmac_ip 3.13.0.1  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
./vmac -nhop_mac 00:00:14:af:00:00 -rphy_ip 3.13.0.3 -vmac_mac 00:0c:29:fc:31:19 -vmac_ip 3.13.0.1  -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0
 +
== big-endian in LC ==
 +
iosd -clc  big-endian
 +
socket_hdr->magic = htonl(CABLE_SOCKET_MAGIC);  //如果是大端环境相当于没转,CABLE_SOCKET_MAGIC小端数据
 +
 +
需要将当前环境设为小端
 +
#ifdef __INTEL_BIENDIAN
 +
    #pragma byte_order(push,littleendian)
 +
    #pragma extern_prefix(push,"")
 +
#endif
 +
#ifdef __INTEL_BIENDIAN
 +
extern boolean cable_socket_encap_hdr(char *buf, int __le size,
 +
        int __le msg_num, int __le client_id);
 +
#else
 +
extern boolean cable_socket_encap_hdr(char *buf, int size,
 +
        int msg_num, int client_id);
 +
#endif
 +
#ifdef __INTEL_BIENDIAN
 +
    #pragma byte_order(pop)
 +
    #pragma extern_prefix(pop)
 +
#endif

2018年1月15日 (一) 08:42的最新版本

LOG

cpp client ------------------> CPP_VNIC_DBG_ERROR buginf log dir /tmp/fp/trace/cpp_cp_F0-0.26489_0.20161205055059.bin

cpp jib-------------------->jib_fd (self new a file /tmp/jib_data.out)

fman ------------------>ERR/FMAN_DPIDB_ERR log dir /tmp/fp/trace/fman_fp_F0-0.28766_0.20161205055107.bin

cdman ------------------>stream in binos/cable/cdman/src/cdman_main.c(self new a file /tmp/cdman.out)

ios ------------------>找相关debug 开关



DEBUG

RPD can not online

sho cable depi multicast pool sho cable rpd log reverse

debug modem online

No MAP with Broadcast Initial Ranging Opportunity

R-PHY#show upstream map counter 0 0 Map Processor Counters


Mapped minislots  : 0 Discarded minislots (chan disable): 0 Discarded minislots (overlap maps): 0 Discarded minislots (early maps)  : 0 Discarded minislots (late maps)  : 0 Unmapped minislots  : 0 Last mapped minislot  : 0 No uepi map <<<<check uepi map send in node R-PHY#show upstream uepi configuration Port Channel PwSubtype SessionId DstMac DstIp 0 0 PSP-UEPI-SCQAM 1073807360 0050.56b2.28d8 10.40.1.2 0 0 PSP-BW-REQ-SCQ 1073872896 0050.56b2.28d8 10.40.1.2 0 0 PSP-RNG-REQ-SCQ 1074003968 0050.56b2.28d8 10.40.1.2 0 0 PSP-MAP-SCQ 1073741824 0050.56b2.28d8 10.40.1.2 -- 0x4000_0000 0 0 PSP-SPECMAN 1074266112 0050.56b2.28d8 10.40.1.2 0 1 PSP-UEPI-SCQAM 1073807364 0050.56b2.28d8 10.40.1.2 0 1 PSP-RNG-REQ-SCQ 1074003972 0050.56b2.28d8 10.40.1.2 0 1 PSP-MAP-SCQ 1073741828 0050.56b2.28d8 10.40.1.2 R-PHY#show upstream map counter 0 0 Map Processor Counters


Mapped minislots  : 0 Discarded minislots (chan disable): 0 Discarded minislots (overlap maps): 0 Discarded minislots (early maps)  : 0 Discarded minislots (late maps)  : 0 Unmapped minislots  : 0 Last mapped minislot  : 0

<<<<check uepi map send in vbr It's in DS vMAC. It was a temporary solution. There is a plan to form the UEPI MAP in CDMAN code. Not sure it is commited BINOS_ROOT/cable/vmac/dsmac/src/doc_proc.c, line 604, calling create_and_send_uepi_map_pw_pkt looking at the code, depi_mpeg.c, line 439 onwards, the UEPI MAP header is hard coded session ID has to be 0x4000_0000 last byte is ch << 2 session ID is 0x4000_00{ch<<2} tcpdump -i Gi2 dst 10.40.1.32 -xx > us_map 03:52:23.112715 IP 10.40.1.2 > 10.40.1.32: l2tp 70

       0x0000:  0004 9f10 0443 0050 56b2 28d8 0800 4500
       0x0010:  005a 0001 0000 ff73 a4be 0a28 0102 0a28
       0x0020:  0120 4000 0000 4001 b776 c03c 01e0 2f00                -- MAP starts with 0xC0
       0x0030:  0001 001e f659 c600 002e 0000 0301 0300
       0x0040:  0105 0600 0010 39de 0010 38ae 0306 0305
       0x0050:  0003 8000 fffc c001 0003 8029 fffc 402a
       0x0060:  fffc 4032 0001 c033

You can also use tcpdump –w to write to a pcap file and use wireshark to decode the pkt. If you have proper plugin to decode UEPI PSP, you should be able to see MAPs Modem Received a RNG-RSP with ABORT RNG-RSP UsChanId=1 Adj: tim=807 power=-48 freq=73 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-36 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Adj: tim=0 power=-32 freq=0 Stat=Continue RNG-RSP UsChanId=1 Stat=Abort [00:03:49 01/01/1970] [CmDocsisCtlThread] BcmCmUsRangingState::RngRspMsgEvent: Received a RNG-RSP with ABORT! Going elsewhere... hwTxId=0 docs ucid=1 Logging event: Unicast Ranging Received Abort Response - Re-initializing MAC;CM-MAC=7c:b2:1b:0f:ea:3e;CMTS-MAC=00:1e:bd:48:90:00;CM-QOS=1.0;CM-VER=3.0; CM> No more active upstream channel, reboot CM Reason is cmts收到power的和期望的difference 从log看是power太低了,有可能是modem或连线问题 加了10db衰减 solve


R-PHY#show bcm-register top-submodules counter L2 Swtich sub modules counter: 00000000: 017fd3d3 00000000 0006ade5 00000000 00000010: 00000000 00000000 00000000 00000000 00000020: 00000000 00000000 0000000e 00000000 00000030: 0007883a 00000000 000e5380 00000000 00000040: 00000001 00000000 00000001 00000000 00000050: 00000001 00000000 00000001 00000000 00000060: 00000000 00000000 00000000 00000000 00000070: 00000000 00000000 00000000 00000000 00000080: 0000636a 00000000 00b8a387 00000000 00000090: 00000000 00000000 00000000 00000000 000000a0: 00007e8d 00000000 00ba86fe 00000000

R-PHY#show bcm-register top-submodules counter L2 Swtich sub modules counter: 00000000: 017fd89d 00000000 0006adfa 00000000 00000010: 00000000 00000000 00000000 00000000 00000020: 00000000 00000000 0000000e 00000000 00000030: 00078851 00000000 000e53ad 00000000 00000040: 00000001 00000000 00000001 00000000 00000050: 00000001 00000000 00000001 00000000 00000060: 00000000 00000000 00000000 00000000 00000070: 00000000 00000000 00000000 00000000 00000080: 0000636b 00000000 00b8a5d7 00000000 00000090: 00000000 00000000 00000000 00000000 000000a0: 00007e8d 00000000 00ba894e 00000000

R-PHY#show upstream map counter 0 0 Map Processor Counters


Mapped minislots  : 0 Discarded minislots (chan disable): 0 Discarded minislots (overlap maps): 0 Discarded minislots (early maps)  : 0 Discarded minislots (late maps)  : 0 Unmapped minislots  : 0 Last mapped minislot  : 0

MapInfoElements: sid: 0 iuc: 0xe offset: 0 compressed: 0x38000 sid: 0x3fff iuc: 0x3 offset: 0x1 compressed: 0xfffcc001 sid: 0 iuc: 0xe offset: 0x9e compressed: 0x3809e sid: 0x3fff iuc: 0x1 offset: 0x9f compressed: 0xfffc409f sid: 0 iuc: 0x7 offset: 0xa2 compressed: 0x1c0a2

cdman map debug

<<< check map counter increase or not in map builder module sh controllers upstream-Cable x/y/z us-channel <n> cdm-ump <<< Check MAP and UCD in map sending module per US controller, if tx counter not increase, it means MAP/UCD not send to DSJIB successfully sh controllers c6/0/0 upstream | i MAP sh controllers c6/0/0 downstream | i UCD <<< check if map sent out successfully from DSJIB sh controllers downstream-Cable 6/0/6 counter rf-channel <<<check if map initial ranging grant send sh int c0/0/0 mac-scheduler 0 | in Init Mtn <<<<check uepi map send

  1. sh controllers c6/0/5 upstream | in Map

Map Count S/W = 955548 Map Count Error = 0 No MAP buffer= 0 Map Count Internal = 869750 Map Count External = 869757 看看 其中 Map Count Internal = 869750是发给USPHY 通过uepi的 <<<<check BWR 有没有被drop

  1. sh controllers c6/0/4 upstream | i OpSt|Requests

Controller 6/0/4 upstream 0 AdminState:UP OpState: UP

 Bandwidth Requests = 34835
 Piggyback Requests = 515
 Invalid BW Requests= 1392

这个命令里可以看BWR counter 正常情况下 Bandwidth Requests会增加 Invalid BW Requests不变 如果这个counter是正常的 那就抓下sfid tracker 看看grant是否给了 === SFID tracker (LC IOS console) ===

no debug cable interface cx/y/z service-flow <sfid> track debug cable interface cable x/y/z serv <sfid> track // wait for 30 seconds, then execute the below CLI to print buffered logs to file show int cable x/y/z up debug sf <sfid> 0 1000 verbose backup the /tmp/cc/cdman-doc-output.txt 这个是SFID tracker命令 你先看看这些吧

cbr send replication map to usphy and modem

debug cable mac-domain map-repl debug cable interface c7/0/0 verbose ------open sup map-repl debug set platform software trace cdman 8/0 -----open cdman-md-com debug test cable md cdman show md c7/0/0 verbose ----- check rfid in cdman

rfid sup-iosd(htonl can not used)------>(htonl must be used)clc-iosd through ipc msg clc-iosd ------->cdman through ipc msg

cdman ubrcce_clc_mapucd_repl_update_handler 处理map repl

           ubr_mbrgrp_rfids_add_from_msg       
          
                   rfid_grp_buf_extract_bitmap_entry   -----------rfid = ntohs(bm_entry->first_rfid);   大小端问题(cbr 平台本身就是大端不存在,vbr存在),so need to change ntohs  to ntohl

sh pl hardware qfp active cab uflow vslot 7 md 0 statistics sh pl hardware qfp active cab cm rx

crash solution

shm_vnic_adaptor_cc down --------socket bind ip is hard code iosd-clc down --------can not alloc memory

vmac down may be due to shm_cc down debug solusion 1.log btdecode /tmp/cc/7/trace/shm /harddisk/tracelogs/ 2.decode harddisk/core/

cpp inject packet test test ubr-dp inject bf-pkt 0.0.0 ffff.ffff.ffff bundle 1 arp-req 10 sh platform hardware qfp active statistics ------cpp inject packet

CPP punt packet show sh plat hardware qf active infrastructure punt summary

rpd upstream up test cable rpd 0.0.0 up-us

fman/cpp debug

show pl ha qf ac infrastructure bqs schedule output default interface In0/0/0:0 show pl ha qf ac infrastructure bqs schedule output default interface In0/0/0:0 hierarchy show pl ha qf ac infrastructure bqs root-schedule all | i VBR


debug cab dhcp debug cab mac-addr

show platform hardware qfp active statistics drop sh cable bundle 1 forwarding-table

sh pl hardware qfp active interface if-name bundle 1 sh platform hardware qfp active feature docsis bf 9 replist

sh platform software cable FP active vbun-fld

test cable dsnb show-inj-hdr-n-state Integrated-Cable 9/0/0:0


set pl software trace forwarding-manager FP active cable-vbun-fld debug debug platform software cbl_vbun_fld trace


show platform hardware qfp active statistics drop show pl ha qf ac statis dro


Global Drop Stats Packets Octets


CblBfReplicationStart 4 168 Disabled 8 656 EncapInvalid 1577 148546 UnconfiguredIpv4Fia 4 472 UnconfiguredIpv6Fia 5 622

Router#show pl ha qf ac statis dro


Global Drop Stats Packets Octets


CblBfReplicationStart 4 168 Disabled 8 656 EncapInvalid 1579 148666 UnconfiguredIpv4Fia 4 472 UnconfiguredIpv6Fia 5 622 debug pl ha qf ac fe cef-mpl drop cause xxx data show pl ha qf ac statis dro det -------get xxx

show pl software interface fp ac name-string Te0/0/0 sh platform hardware qfp active interface if-name Te0/0/0 path

cpp_cp_Fo traceback -------------- cd binos && mcp_stump cpp/dp/obj/ulord/ultra,qfp-ucode-vbr.symbols


Router#debug pl ha Router#test pl ha qf ac feature docsis dtrack mac-address 0050.5691.2540 Router#test pl ha qf ac feature docsis dtrack pa Router#test pl ha qf ac feature docsis dtrack packet-copy


Router#show pl ha qf ac fe do dt statistics

w-online issue debug

UBR DSBG:

 DSBG assn info debugging is on
 DSBG assn errors debugging is on

UBR DSNB:

 DSNB interface state debug debugging is on
 DSNB interface state change debug debugging is on
 DSNB interface state change event debug debugging is on

UBR MD:

 MD DS CGD DEBUG debugging is on
 MD IPC DEBUG debugging is on
 MD INTF DEBUG debugging is on


CMTS:

 CMTS md-sg debugging is on   ----------debug cable md-sg
 CMTS md-sg HA sync debugging is on
 CMTS RCC debugging is on
 CMTS fiber node debugging is on
 CMTS CGD CLI debugging is on

CMTS specific:

 Debugging is on for Cable1/0/0 (verbose)


Slot-9-0#sh debugging UBR DSBG:

 DSBG assn info debugging is on
 DSBG assn errors debugging is on

UBR DSNB:

 DSNB interface state debug debugging is on
 DSNB interface state change debug debugging is on
 DSNB interface state change event debug debugging is on

UBR MD:

 MD DS CGD DEBUG debugging is on
 MD IPC DEBUG debugging is on
 MD INTF DEBUG debugging is on

CMTS:

 CMTS md-sg debugging is on
 CMTS md-sg HA sync debugging is on
 CMTS RCC debugging is on
 CMTS fiber node debugging is on
 CMTS CGD CLI debugging is on

mcp_stump

mcp_stump -Traceback= 1#d7f7e2f4b82d004ca888a61614565aa5  :55E45D6A1000+9201BD7 :55E45D6A1000+91F64BE :55E45D6A1000+91F5A8C :55E45D6A1000+91F3EDA :55E45D6A1000+8679636 :55E45D6A1000+9210672

-Traceback=1#8403002c26876a91880fdf660875f754 804a80f6 804a7723 800def35 804a906e 80409cff 804042b2 80403a50 803f9b53

chan 0:0 txn 0x2CC00000 failed ucd-rpd-np debug cable ump ucd-proxy debug cable ucm

linkfarm/x86_64_cge7-xbr/usr/binos/bin/x86_64bi_linux_iosd_xbr-universalk9-ms.sun -Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+BCF650E :5600E619F000+BCECE14 :5600E619F000+707A480 :5600E619F000+707A376 :5600E619F000+70739A6 :5600E619F000+6DF0B45 :5600E619F000+6DF286F :5600E619F000+6E08167 :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310

-Traceback= 1#12bcb8fc5d5aac60ba7038ff50976b76 :55FD0D8A2000+6D5E5D9 :55FD0D8A2000+6D5DDE4 :55FD0D8A2000+6D5F303 :55FD0D8A2000+6EE8AA1 :55FD0D8A2000+6EE9005 :55FD0D8A2000+6EEDEF5 :55FD0D8A2000+6EECF70 :55FD0D8A2000+6EEB055 :55FD0D8A2000+6DFF6F5 :55FD0D8A2000+6DDF2E4 :55FD0D8A2000+6DCD4C1 :55FD0D8A2000+6DCC8C8 :55FD0D8A2000+8456101 :55FD0D8A2000+8455C53 :55FD0D8A2000+844EBBC :55FD0D8A2000+91F64AE

src-ubr/dataplane/ubr_dp_acfe.c", line 737


ASSERTION FAILED: file "../src-ubr/dataplane/ubr_dp_acfe.c", line 737

Exception to IOS Thread: Frame pointer 0x7FF835E7D300, PC = 0x5600ED208966

UNIX-EXT-SIGNAL: Segmentation fault(11), Process = cardstate oir task -Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+7069966 :5600E619F000+6DD5E1D :5600E619F000+6E07D4B :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310

Fastpath Thread backtrace: -Traceback= 1#dc491fbd31f271d6e6260f7d06be4193 c:7FF8E2C98000+E0AF3 prelib:7FF9412C9000+32AE

Auxiliary Thread backtrace: -Traceback= 1#dc491fbd31f271d6e6260f7d06be4193 pthread:7FF8E2877000+BB45 prelib:7FF9412C9000+32AE

RAX = 0000000000000001 RBX = 782EE55EF87F0000 RCX = 00007FF8E39EBD80 RDX = 9404000000000000 RSP = 00007FF835E7D300 RBP = 00007FF835E7D320 RSI = 000000000000780E RDI = 0000000000004791 R8 = 00007FF8E39EC438 R9 = 0000000000000002 R10 = 0000000000000040 R11 = 0000000000000282 R12 = 60250BA2F87F0000 R13 = 00007FF8A20B2560 R14 = 0000000000000000 R15 = B03CAB5DF87F0000 RFL = 0000000000010203 RIP = 00005600ED208966 CS = 0033 FS = 0000 GS = 0000 ST0 = 0000 0000000000000000 ST1 = 0000 0000000000000000 ST2 = 0000 0000000000000000 ST3 = 0000 0000000000000000 ST4 = 0000 0000000000000000 ST5 = 0000 0000000000000000 ST6 = 0000 0000000000000000 ST7 = 0000 0000000000000000 X87CW = 037F X87SW = 0000 X87TG = 0000 X87OP = 0000 X87IP = 0000000000000000 X87DP = 0000000000000000 XMM0 = 33413141382B30303046393136453030 XMM1 = 25252525252525252525252525252525 XMM2 = 00000000000000000000000000000000 XMM3 = 0000000000000000FF00000000000000 XMM4 = 00000000000000000000000000000000 XMM5 = 00000000000000000000000000000000 XMM6 = 00000000000000000000000000000000 XMM7 = 00000000000000000000000000000000 XMM8 = 00000000000000000000000000000000 XMM9 = 00000000000000000000000000000000 XMM10 = 00000000000000000000000000000000 XMM11 = 00080000000400000002000000010000 XMM12 = 00000000000000000000000000000000 XMM13 = 80000000400000002000000010000000 XMM14 = 00000000000000000000000000000000 XMM15 = 00000000000000000000000000000000 MXCSR = 00001F80

Writing crashinfo to bootflash:crashinfo_RP_00_00_20161208-013048-UTC Buffered messages: (last 4096 bytes only) E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985

  • Dec 8 01:30:11.352: fmanrp_cable_fwd_dpidb_cmnparams_set()L368 Err: DPIDB_CABLE_FWD Integrated-Cable7/0/0:1

-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+85DBD9D :5600E619F000+85C3FA3 :5600E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985

  • Dec 8 01:30:11.354: fmanrp_cable_fwd_dpidb_cmnparams_set()L368 Err: DPIDB_CABLE_FWD Integrated-Cable7/0/0:2

-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+85DBD9D :5600E619F000+85C3FA3 :5600E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985

  • Dec 8 01:30:11.355: fmanrp_cable_fwd_dpidb_cmnparams_set()L368 Err: DPIDB_CABLE_FWD Integrated-Cable7/0/0:3

-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+85DBD9D :5600E619F000+85C3FA3 :5600E619F000+85C3E0D :5600E619F000+84A85F9 :5600E619F000+8448F03 :5600E619F000+91F65AE :5600E619F000+91F5B7C :5600E619F000+91F3FCA :5600E619F000+920059D :5600E619F000+9200C4C :5600E619F000+9A4F907 :5600E619F000+9A44355 :5600E619F000+9A3951A :5600E619F000+9A48716 :5600E619F000+9A4A873 :5600E619F000+9A4A985

  • Dec 8 01:30:11.287: %CPPOSLIB-3-ERROR_NOTIFY: F0: fman_fp_image: fman_fp encountered an error -Traceback= 1#ae4974a47d50aa1db24b8a21c35d039c errmsg:7F9B3F793000+1964 cpp_common_os:7F9B19425000+DB7C cpp_common_os:7F9B19425000+1B97E cpp_vnic_api_lib:7F9B1C33E000+2A0B :400000+3C0331 :400000+3BEE4A :400000+6228A0 cpp_common_os:7F9B19425000+11DB0 cpp_common_os:7F9B19425000+12496 evlib:7F9B1FD00000+8A69 evlib:7F9B1FD00000+955C :400000+3ABEAF :400000+62A8A3 c:7F9B07367000+219A5 :400000+1E10E9
  • Dec 8 01:30:11.288: %CPPOSLIB-3-ERROR_NOTIFY: F0: cpp_cp_svr: cpp_cp encountered an error -Traceback= 1#6daaae4a35a79d2fd97974584381faa4 errmsg:7FB542B53000+1964 cpp_common_os:7FB54686A000+DB7C cpp_common_os:7FB54686A000+1B97E cpp_vnic_ea_lib:7FB55CB1D000+6C09 cpp_vnic_ea_lib:7FB55CB1D000+4BAB cpp_vnic_ea_lib:7FB55CB1D000+7ACC cpp_common_os:7FB54686A000+11DB0 cpp_common_os:7FB54686A000+12496 evlib:7FB5454B1000+8A69 evlib:7FB5454B1000+955C cpp_common_os:7FB54686A000+14052 :400000+5E56 c:7FB530045000+219A5
  • Dec 8 01:30:11.420: %SYS-5-CONFIG_I: Configured from memory by console
  • Dec 8 01:30:11.718: %IOSXE_OIR-6-INSCARD: Card (rp) inserted in slot R1
  • Dec 8 01:30:11.718: %IOSXE_OIR-6-INSCARD: Card (fp) inserted in slot F0
  • Dec 8 01:30:11.718: %IOSXE_OIR-6-ONLINECARD: Card (fp) online in slot F0
  • Dec 8 01:30:11.863: %SYS-5-RESTART: System restarted --

Cisco IOS Software [Denali], CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Experimental Version 16.5.20161114:110622 [UNKNOWN BRANCH-yuanliu2 106] Copyright (c) 1986-2016 by Cisco Systems, Inc. Compiled Mon 14-Nov-16 04:06 by yuanliu2

  • Dec 8 01:30:11.900: %SSH-5-ENABLED: SSH 1.99 has been enabled
  • Dec 8 01:30:12.607: %SYS-6-BOOTTIME: Time taken to reboot after reload = 169 seconds
  • Dec 8 01:30:12.614: %DYNCMD-4-CMD_DEPRECATION: The command 'platform trace runtime' is being deprecated. Please use the exec mode command 'set platform software trace' instead. Note that using this command and 'set platform software trace' together will lead to indeterministic results
  • Dec 8 01:30:12.736: %CVAC-4-FILE_IGNORED: Configuration file cdrom1:/ovf-env.xml is ignored: checksum unchanged since last inspected
  • Dec 8 01:30:12.896: %CBR_PTP-5-TOD_CHG: The TOD source changed: local freerun

Queued messages:

  • Dec 8 01:30:50.713: %SYS-3-LOGGER_FLUSHING: System pausing to ensure console debugging output.
  • Dec 8 01:30:47.929: %IOSXE_OIR-6-INSCARD: Card (cc) inserted in slot 2
  • Dec 8 01:30:47.963: %SYS-2-MALLOCFAIL: Memory allocation of 281018372 bytes failed from 0x5600ED219480, alignment 8

Pool: Processor Free: 141606784 Cause: Not enough free memory Alternate Pool: None Free: 0 Cause: No Alternate pool

-Process= "cardstate oir task", ipl= 0, pid= 216

-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+BCF650E :5600E619F000+BCECE14 :5600E619F000+707A480 :5600E619F000+707A376 :5600E619F000+70739A6 :5600E619F000+6DF0B45 :5600E619F000+6DF286F :5600E619F000+6E08167 :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310

  • Dec 8 01:30:47.930: %CPPOSLIB-3-ERROR_NOTIFY: F0: cpp_cp_svr: cpp_cp encountered an error -Traceback= 1#6daaae4a35a79d2fd97974584381faa4 errmsg:7FB542B53000+1964 cpp_common_os:7FB54686A000+DB7C cpp_common_os:7FB54686A000+1B97E cpp_bqs_mgr_lib:7FB559533000+50286 cpp_bqs_mgr_lib:7FB559533000+47C07 cpp_bqs_mgr_lib:7FB559533000+260C6 cpp_bqs_mgr_lib:7FB559533000+4361D cpp_if_notif:7FB558CC2000+2418 cpp_gic_ea_lib:7FB55C2C3000+27E51 cpp_gic_ea_lib:7FB55C2C3000+2790E cpp_gic_ea_lib:7FB55C2C3000+2AE3A cpp_gic_e

-Traceback= 1#dc491fbd31f271d6e6260f7d06be4193  :5600E619F000+6C47A40 :5600E619F000+7069A11 :5600E619F000+6DD5E1D :5600E619F000+6E07D4B :5600E619F000+8A1669A :5600E619F000+8A16343 :5600E619F000+8A194A6 :5600E619F000+8A18DC5 :5600E619F000+8A1A310 IOSD RP: 1 messages not written to btrace log file


CPP_VNIC_EVENT_PATH_BIND_A

   cpp_vnic_path_bind_a
   fman_hwpath_vxe_consol_if_state_update
   fman_hwpath_vxe_create_a


fman-rp /ios/sys/mcp/mcprp/fman-rp/fmanrp_dpidb.c fmanrp_dpidb_create (uint ift, void *if_info,tdl_dpidbtype_e_t dpidbtype, dpidx_t dpidx)

   (内部调用fmanrp_dpidb_cmnparams_set
        reg_invoke_fmanrp_dpidb_use_cmnparams_platform_set
        reg_add_fmanrp_dpidb_use_cmnparams_platform_set(DPIDB_TYPE_CABLE_FWD
        fmanrp_cable_fwd_dpidb_cmnparams_set(type= DPIDB_TYPE_CABLE_FWD ) )

fman-fp fman_aom_update aom_update dpidb_create_aom_cb fman/fp/src/fman_intf_cpp.c fman_intf_cpp_create (cmn_dpidb_t *pidb) fman_intf_cpp_cable_fwd_intf_create_a

cpp_gic_interface_create_a CPP_GIC_EVT_CREATE_INTERFACE_A cpp_gic_async_msg_handler create_if_cb dpidb_fp_if_create_cb


fman_hwpath_create_a

  fman_hwpath_vxe_create_a
     cpp_vnic_virt_if_create_a

CPP_VNIC_EVENT_IF_CREATE_A

     case CPP_VNIC_EVENT_IF_CREATE_A:
     case CPP_VNIC_EVENT_PATH_BIND:
     case CPP_VNIC_EVENT_PATH_BIND_A:

cpp interface code path

cpp_vnic_ipc_send_a

   vnic_client_proxy_ipc_handler
       vnic_proxy_vnic_create //VNIC_DEST_CABLE_SHM
           cable_shm_create

cpp/client/intf/gic/server/cmn/src/cpp_gic_svr_if.c

cpp_gic_ea_if_create_a (cpp_aem_task_h task_h, 310 cpp_gic_if_create_req_st *req_p)

fman_oir_cc_insert_a crash decode log

  1. 10 0x00007f17c4d29789 in btrace_wrapper (module_id=292, level=0 '\000', flags=BTRACE_EMIT_CHECKED, format=0xdc0b80 "(FATAL): Failed channel handle index %d for slot %d-%d card_type=%d\n") at infra/btrace/src/btrace.c:4952
  2. 11 0x00000000007b5e1c in fman_oir_cc_insert_a (pcc=0x2087570) at fman/fp/src/../vbr/src/fman_oir_vbr.c:1724
  3. 12 0x00007f17edafc7d3 in aom_update (obj_group=0x1fda148, update_issued=<optimized out>) at infra/aobjman/src/aom_api.c:3836
  4. 13 0x0000000000a2ad06 in fman_aom_update (event_ctx=..., ctx=<optimized out>, tag=0x6) at fman/fp/src/fman_main.c:184
  5. 14 0x00007f17c3ac6d96 in __evDispatch (opaqueCtx=..., opaqueEv=...) at infra/contrib/evlib/../../../contrib/bind/lib/bind/isc/eventlib.c:1487
  6. 15 0x00007f17c3ac755c in evMainLoopFair (opaqueCtx=...) at infra/contrib/evlib/../../../contrib/bind/lib/bind/isc/eventlib.c:799
  7. 16 __evMainLoop (opaqueCtx=...) at infra/contrib/evlib/../../../contrib/bind/lib/bind/isc/eventlib.c:1675
  8. 17 0x00000000007abeaf in call_evmainloop (ctx=..., hdl=<optimized out>, argc=<optimized out>, argv=<optimized out>) at fman/fp/src/fman_orch_non.c:28
  9. 18 0x0000000000a2a9b3 in main (argc=1, argv=0x7ffd9a3c3d48) at fman/fp/src/fman_main.c:842



SSH Configuration

ip ssh V1 configure terminal enable password lab ip domain-name cisco.com crypto key generate rsa general-keys modulus 1024 ip ssh time 120 ip ssh authentication 4 line vty 0 4 transport input ssh exit aaa new-model aaa authentication login default local username admin password lab

ip ssh V2 1. enable

2. configure terminal

3. ip ssh rsa keypair-name keypair-name


4. crypto key generate rsa usage-keys label ssh_key modulus 1024 5. ip ssh [time-out seconds | authentication-retries integer]


6. ip ssh version 2 ip ssh authentication-retries 4 ip ssh source-interface GigabitEthernet0 ip ssh rsa keypair-name ssh_key ip ssh version 2 ip ssh server algorithm encryption aes128-ctr aes192-ctr aes256-ctr ip ssh client algorithm encryption aes128-ctr aes192-ctr aes256-ctr


aaa new-model aaa authentication login default local aaa session-id common

username admin password lab line vty 0 4

exec-timeout 0 0
privilege level 15
password lab
logging synchronous
exec prompt timestamp
transport input ssh

vCMTS

xbr multi_lc user guide


control plane (SUP eth3 <----> LC eth0)
data plane (SUP eth4 <----> LC eth1)

1. Build image git clone /auto/crdc-nsg-ws8/falcon/merge.git git checkout multi_lc abraxas-client.SignEngine -r create-ticket -b CBR -k DEV -n 500 -U yuanliu2 -P (dir binos) export BINOS_ROOT=/nobackup/yuanliu2/polaris/binos mcp_ios_precommit DIGI_SIGN=DEVELOPMENT xbr_super -j16 (dir ios/sys)

2. Image locations SUP Directory: /binos/linkfarm/iso-xbr LC Directory: /binos/linkfarm /iso-xbr-clc/

"xbr-universalk9.2016-12-09_01.48_yuanliu2.ova" is for SUP VM to setup , " xbr-universalk9clc.2016-12-09_01.53_yuanliu2.iso" is for LC VM to setup.

!!! Notice If you have only changed vmac/cdman/adaptor etc. code, you can build with "gmk -f Plx=-xbr TARGET=x86_64_cge7 bin-x86_64_cge7-xbr/vmac" then copy vmac to /harddisk/tmp of VM to save time.

3.VM setup Solusion1: manual deploy http://cmtswiki.cisco.com:8080/display/cmtspub/VM+Set+Up+for+vCMTS Solusion2: auto deploy tool ---------->USD http://10.124.8.7/xbr (nedd to change cpu memory vlan info after auto deploy)

!!!Notice the minimum resource requirements for SUP VM

CPUs num: 6 Memory: 16G network adaptor num: 5

!!!Notice the minimum resource requirements for LC VM

CPUs num: 4 Memory: 16G network adaptor num: 4 SUP eth3 <----> LC eth0 in the same vlan SUP eth4 <----> LC eth1 in the same vlan LC eth3 <----> vRPD eth0 in the same vlan

4.Config SUP VM(when set up SUP VM firstly, need to through SUP ios request platform software system to config [RP_0:~]$ cat /harddisk/rommon_vars SR_INIT_SHELL=aux_do_system_shell IP_ADDRESS=3.33.11.25 IP_SUBNET_MASK=255.255.0.0 DEFAULT_GATEWAY=3.33.0.1 REAL_MGMTE_DEV= SR_MGMT_VRF=0 [RP_0:~]$sync [RP_0:~]$ reboot Config LC VM(when set up LC VM firstly, need to through SUP binos console telnet cc0-0 to config LC ) [SIP_7:~]$ cat /harddisk/rommon_vars SR_INIT_SHELL=aux_do_system_shell SLOT_NUM=7 [SIP_7:~]$ cat /harddisk/vmac_config_file ./vmac -nhop_mac 00:50:56:91:4C:52 -rphy_ip 3.30.1.4 -vmac_mac 00:50:56:91:2b:9d -vmac_ip 3.30.1.5 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 !!!nhop_mac is next Hop Mac which is mac address of the RPD. !!!rphy_ip - IP address of the RPD. Can be a private IP address if not visible on the network. This should be in same subnet as vmac IP address as specified by argument -vmac_ip below. !!!vmac_mac is MAC address of the SUP VM for the ethernet interface that connects to RPD. !!!vmac_ip - IP address of the SUP VM for the ethernet interface that connects to RPD. This IP address is not exposed to the outside world, so you are free to provide a private address. !!!rphy_if - ethernet interface that connects to RPHY. The above vmac_mac MAC and vmac_ip IP address correspond to this interface. !!!us_mac_cpus - core# for usmac. US mac is pinned to this core. !!!ds_mac_cpus - core# for dsmac. dsmac is pinned to this core. !!!debug - debug flag. Ignore..Optional. [SIP_7:~]$sync [SIP_7:~]$reboot (before reboot need to switch to SUP VM binos to "mkdir /tmp/rp/chasfs/cc/0" only once) Config vRPD VM directly use USD to deploy

SUP IOS config:yuanliu2@10.75.12.12:~/xbr_multi_lc.cfg Router#copy bootflash:xbr_multi_lc.cfg startup-config !!!must have config card 0/0 xBR !!!interface Te0/0/0

mac-address 0050.56a4.055c         -------------vmac_mac 00:50:56:91:2b:9d
ip address 3.35.1.1 255.255.255.0  ------------vmac_ip 3.30.1.5
ip mtu 1500
no mop enabled
no mop sysid

5. Some workarounds (reboot sequence) !!!Once reboot SUP, need to do following step [Router:~]$ mkdir /tmp/rp/chasfs/cc/7 # Card (cc) inserted in slot 7

!!!then reboot LC

6. Debug solution !!! btdecode /tmp/cc/7/trace/

                  /tmp/rp/
                  /tmp/fp/
                  /harddisk/tracelogs/

If build vmac or other processes individually, logs can't be decoded, need add log code using fprintf to log into your own files. !!! decode /harddisk/core/

7. Bring Virtual CM Online Make sure all listed files available:

[RP_0:/harddisk]$ ls basic11.cm <<< CM configuration file for All-in-One xbr_multi_lc.cfg <<< CMTS startup configuration

Check running config

* interface Te0/0/0 * cable rpd 1 * Downstream controller & channel parameters. * Upstream controller & channel parameters. * MD interface, Bundle interface, IC interface. * DHCP & CM config file (all-in-one is used to bring CM online). * WB interface, Fiber Node.


Check whether MD interface, WB interface, Bundle interface are in UP status: Router#sh ip int b Interface IP-Address OK? Method Status Protocol Cable0/0/0 Bundle1 YES unset up up GigabitEthernet2 unassigned YES NVRAM up up GigabitEthernet3 unassigned YES NVRAM administratively down down Te0/0/0 3.35.1.1 YES NVRAM up up Do0/0/0:0 Bundle1 YES unset up up Wideband-Cable0/0/0:0 Bundle1 YES unset up up Do0/0/0:1 Bundle1 YES unset up up Do0/0/0:2 Bundle1 YES unset up up Do0/0/0:3 Bundle1 YES unset up up

Check LC vmac_config_file mac and ip [SIP_7:~]$ cat /harddisk/vmac_config_file ./vmac -nhop_mac 00:50:56:91:4C:52 -rphy_ip 3.30.1.4 -vmac_mac 00:50:56:91:2b:9d -vmac_ip 3.30.1.5 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0

单独打包LC cd /nobackup/zhliu2/vbr_vm/binos && IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr IMAGE_VARIANT=clc release-binos 单独打包SUP cd /nobackup/zhliu2/vbr_vm/binos && IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr release-binos

ptp

vcmts config 1.ptp config [RP_0:~]$ cat /harddisk/rommon_vars SR_INIT_SHELL=aux_do_system_shell IP_ADDRESS=3.33.11.23 IP_SUBNET_MASK=255.255.0.0 DEFAULT_GATEWAY=3.33.0.1 REAL_MGMTE_DEV= SR_MGMT_VRF=0 RPHY_IF=Gi2 CABLE_PTP_IF=eth3 CABLE_PTP_IP=3.30.222.2 CABLE_PTP_MASK=255.255.0.0 CABLE_PTP_SERVER=192.168.222.222 refer:http://cmtswiki.cisco.com:8080/display/cmtspub/PTP+setup+in+vCMTS+VM+and+server [Router:~]$ cat /harddisk/ptpd2.conf ptpengine:interface=eth3 ptpengine:domain=0 ptpengine:preset=slaveonly ptpengine:ip_mode=unicast ptpengine:unicast_negotiation=y ptpengine:unicast_destinations=192.168.222.222 ptpengine:log_delayreq_interval=0 global:dump_packets=N global:log_status=y global:status_file=/bootflash/ptpd2.status global:log_file=/bootflash/ptpd2.log global:log_file_max_size=256 ptpengine:vbr_ignore_utc_offset=y ptpengine:utc_offset=0

2.vmac config [RP_0:~]$ cat /harddisk/vmac_config_file ./vmac -nhop_mac 00:04:9F:00:09:13 -rphy_ip 3.35.1.4 -vmac_mac 00:50:56:a4:13:15 -vmac_ip 3.35.1.1 -rphy_if Gi2 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 refer:http://cmtswiki.cisco.com:8080/display/cmtspub/vmac+related+setup 3. cable rpd 1 identifier 0004.9f00.0913 core-interface Gi2

 principal
 rpd-ds 0 downstream-cable 0/0/0 profile 3
 rpd-us 0 upstream-cable 0/0/0 profile 3

r-dti 1 rpd-event profile 0 ! ptp r-dti 1 ptp-domain 0 clock-port 1

  ethernet 1
  clock source ip 192.168.222.222 gateway ip 3.35.222.222               /*   ip address of PTP server  and ip address of RPD gateway (vhh0 in my case uses local ip address of RPD)

! 0050.5691.2540


rpd config 1.ptp config root@00049F000913:/# cat /bootflash/ptp.conf [PORT_ID] 0 [MASTER_IP] 192.168.222.222 [GATEWAY_IP] 3.35.222.222

R-PHY#show ptp clock 0 state apr state  : PHASE_LOCK clock state  : SUB_SYNC current tod  : 1479943078 Wed Nov 23 23:17:58 2016 active stream  : 1 ==stream 1  :

 port id       :                0
 master ip     :  192.168.222.222
 stream state  :       PHASE_LOCK
 Master offset :               44
 Path    delay :            -1671
 Forward delay :            -1627
 Reverse delay :            -1695
 Freq offset   :          -455301
 1Hz  offset   :               14

refer: http://cmtswiki.cisco.com:8080/display/cmtspub/PTP+config+in+RPD


ssh -l root 3.35.1.4 00:04:9F:00:09:13/3.35.1.4 en shell upgradeuboot.sh tftp -r /tftpboot/RPD_ECE3-20161109_070001.itb -g 20.1.0.33 tftp -r /tftpboot/RPD_seres_rpd_20170112_010001.itb -g 3.35.11.1 tftp a0000000 3.33.11.1:/tftpboot/RPD_seres_rpd_20160912_010001.itb && bootm tftp a0000000 3.33.11.1:/tftpboot/RPD_ECE3-20161110_070002.itb && bootm ifconfig eth2 3.33.11.5 netmask 255.255.0.0 tftp -r tftpboot/RPD_ECE3-20161110_070002.itb -g 3.33.11.1

Check uboot version root@RPD00049f300255:/# strings -n 30 /dev/mtd5 | grep ^U-Boot U-Boot 2016.01 (Sep 23 2016 - 03:19:57 +0800) Check CPLD version root@00049F300249:/# rpdcpld -g 0 address = 0x0, value = 0x235 ns-cBR-05#sho running-config | sec ptp ptp clock ordinary domain 0

servo tracking-type R-DTI
clock-port slave-from-903 slave
 delay-req interval -4
 sync interval -5
 sync one-step
 transport ipv4 unicast interface Lo1588 negotiation
 clock source 192.168.222.222

ptp r-dti 20

ptp-domain 0
clock-port 22
  ethernet 1
  clock source ip 192.168.222.222 gateway ip 93.2.40.93

ns-cBR-05#sho ru ns-cBR-05#sho running-config | sec prd ns-cBR-05# ns-cBR-05#sho running-config | sec rpd

 virtual-arpd 1
   source-id 1
   nc 3.3.3.3 udp-port 100
   ip 32.32.32.32 255.255.255.0

! cable rpd 1

identifier 0004.9f00.0919
no rpd-ds 0 mute
no rpd-ds 0 shutdown
core-interface Te1/1/0
 principal
 rpd-ds 0 downstream-cable 1/0/0 profile 128
 rpd-us 0 upstream-cable 1/0/0 profile 4
r-dti 20
rpd-event profile 0

ptp clock ordinary domain 0

servo tracking-type R-DTI
clock-port slave-from-903 slave
 delay-req interval -4
 sync interval -5
 sync one-step
 transport ipv4 unicast interface Lo1588 negotiation
 clock source 33.33.158.158

ptp r-dti 1

ptp-domain 0
clock-port 22
  ethernet 1
  clock source ip 33.33.158.158 gateway ip 60.10.10.20
clock-port 23
  ethernet 1
  transport ipv6
  clock source ipv6 2001:10:74:54::1 gateway ipv6 2001:60:10:13::27

multi rpd

dpic_xge_ipaddr_change---------------ubrcce_cli_xfer_send_show_cmd_with_params_cdm( NULL, slot, 0, TRUE, 0, UBR_CLI_XFER_CDM_APPL_ID_DPIC_XGE_CFG, &appl_param) ubrcce_dsjib_cli_xfer_dpic_mtu_cfg_handler vbr_ds_jib_encap_ch_cfg

dsjib_vmac_ds_ch_encap_set_and_send

depi_ch_encap_cfg

problem:

1.session_id is same in different rpd, session_id 怎么分配的


1. RfChannelIndex 2. vmac 只建立了chan------mac/ip vbr_ds_jib_encap_ch_cfg(chan, depi_encap->sess_id[chan],

                                  depi_encap->add_vlan,
                                  depi_encap->vlan_id,
                                  &depi_encap->mac_da[0],
                                  depi_encap->ipv4_da);

3. abcdefghijklmn:error rsp from vmac, type:13, status; 0, index:8 4. DMP_TDL_RT_RX:abcdefghijklmnopabcdefghij: Write Sync Cfg FAILED 5. ubr_map_builder_scqam_serve_periodic_ucd failed to send UCD on chan 0:0 6. 删除rpd以后vmac的配置没有变


dsjib 在查找tunnel_id是根据什么索引的----------jib_chan_id(dcm管理)

Desktop


encap_ip_sa_cfg reboot sup lc reboot

lc copy image

vbr_poloris_build

git clone /auto/crdc-nsg-ws8/falcon/polaris.git git checkout new_cardtype cd binos abraxas-client.SignEngine -r create-ticket -b fishbowl -k DEV -n 20 -U yuanliu2 -P <soft-token> cd ios/sys export BINOS_ROOT=/nobackup/yuanliu2/polaris/binos mcp_ios_precommit DIGI_SIGN=DEVELOPMENT xbr_super -j16 scp xbr-universalk9clc.2016-10-24_23.58_yuanliu2.ova yuanliu2@10.74.12.33:/tftpboot/yuanliu2


单独build process gmk -f Plx=-xbr TARGET=x86_64_cge7 bin-x86_64_cge7-xbr/shm_vnic_adaptor_cc put shm_vnic_adaptor_cc into /harddisk/tmp 单独package SUP IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr release-binos 单独package LC cd /nobackup/hongtye/vbr_vm/binos && IMAGE="universalk9" MCP_BUILD_NO_LOG=1 MCP_BUILD_LOG_TIME=1 /auto/binos-tools/bin/gmk -jmakej PLATFORM=xbr IMAGE_VARIANT=clc release-binos

1. If your code change related with rphyman or cdman, please run this build under binos:: Rphyman change:gmk TARGET=mips64_cge7 cable/cdman/all-mips64_cge7-ubr -j32 Cdman change: gmk TARGET=x86_64_cge7 cable/rphy/all-x86_64_cge7-ubr -j32 Or under /binos/cable/rphy: gmk -f Plx:=-ubr TARGET=x86_64_cge7 bin-x86_64_cge7-ubr/rphyman -j16 Under /binos/cable/cdman: gmk -f Plx:=-ubr TARGET=mips64_cge7 bin-mips64_cge7-ubr/cdman -j16 2. For IOS change on SUP, please run make xxx.o under ios/sys/obj-x86_64bi-ubr-iosd. (xxx.o is the obj file that you made change for xxx.c)

Boot image

boot harddisk:cbrsup-universalk9.BLD_V166_THROTTLE_LATEST_20170518_032244_2.SSA.bin

CRDC-NG-E09#dir harddisk:d31_sreg_nightly.cfg

boot rpd in rom mode

=> ext2ls mmc 0:1 <DIR> 4096 . <DIR> 4096 .. <DIR> 16384 lost+found

             20 .seres.date
       31371944 RPD_seres_rpd_20170109_010001.itb

<SYM> 33 imagea <SYM> 33 imageb

           3111 init.seres.log

<DIR> 4096 znie

       31373484 RPD_seres_rpd_20170110_010002.itb
       31374024 seres_rpd_jianyzha_0111.itb
              0 RPD_seres_rpd_20170113_010001.itb
           1444 dpll_check_log
              0 apll_check_log

=> sboot RPD_seres_rpd_20170110_010002.itb

                        • boot RPD_seres_rpd_20170110_010002.itb *************

31373484 bytes read in 1441 ms (20.8 MiB/s) After it reboot, shell root@00049F330013:/# cd bootflash/ root@00049F330013:/bootflash# ln -sf RPD_seres_rpd_20170110_010002.itb imagea -sf RPD_seres_rpd_20170110_010002.itb imagebroot@00049F330013:/bootflash# ln -sf RPD_seres_rpd_20170110_010002.itb imageb root@00049F330013:/bootflash# root@00049F330013:/bootflash# root@00049F330013:/bootflash# ls -l -rw-r--r-- 1 root root 31371944 Jan 8 19:00 RPD_seres_rpd_20170109_010001.itb -rw-r--r-- 1 root root 31373484 Jan 14 00:58 RPD_seres_rpd_20170110_010002.itb -rw-r--r-- 1 root root 0 Jan 16 21:29 RPD_seres_rpd_20170113_010001.itb -rw------- 1 root root 0 Jan 16 21:32 apll_check_log -rw------- 1 root root 1444 Jan 16 21:32 dpll_check_log lrwxrwxrwx 1 root root 33 Jan 19 06:03 imagea -> RPD_seres_rpd_20170110_010002.itb lrwxrwxrwx 1 root root 33 Jan 19 06:03 imageb -> RPD_seres_rpd_20170110_010002.itb -rw-r--r-- 1 root root 3111 Jan 16 21:36 init.seres.log drwxr-xr-x 2 root root 16384 Oct 21 01:48 lost+found -rw-r--r-- 1 root root 31374024 Jan 15 22:43 seres_rpd_jianyzha_0111.itb drwxr-xr-x 2 root root 4096 Jan 18 00:45 znie root@00049F330013:/bootflash#

binos/cable/cdman/module/ubr-infra/ump/src/ubr_ump_cntrl_vbr.c

packet format

arp packet

  0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0010  01 01 00 00 00 0e 00 3c 00 5c 00 00 20 0a 00 00  .......<.\.. ...
 0020  00 4c 85 02 00 00 04 00 00 00 00 00 00 00 00 00  .L..............
 0030  ff ff ff ff ff ff 00 1e bd 87 d0 00 08 06 00 01  ................
 0040  08 00 06 04 00 01 00 1e bd 87 d0 00 03 23 01 01  .............#..
 0050  00 00 00 00 00 00 03 23 01 07 00 00 00 00 00 00  .......#........
 0060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0070  00 00 00 00 00 00 00 00 00 00 00 00              ............

arp request ff ff ff ff ff ff 00 50 56 a4 05 5c 08 06 00 01 08 00 06 04 00 01 00 50 56 a4 05 5c 03 23 01 01 00 00 00 00 00 00 03 23 01 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 80 ed 8a 79 6a 7f 00 00 c0 ec 8a 79 6a 7f 00 00 4c f4 a3 ea 6a 7f 00 00 00 00 00 00 scp /harddisk/core/RP_0_qfp-ucode-vbr_30932_20170216-175022-Universal.core.gz yuanliu2@3.33.11.1:~/ en conf t no boo sys boo sys bootflash:xbr-universalk9.2017-04-01_03.15_yuanliu2.bin end wr

0000 01 01 00 00 00 0e 00 3c 00 5c 00 00 20 0a 00 00 .......<.\.. ...

 0010  00 4c 85 02 00 00 04 00 00 00 00 00 00 00 00 00  .L..............
 0020  ff ff ff ff ff ff 00 50 56 a4 05 5c 08 06 00 01  .......PV..\....
 0030  08 00 06 04 00 01 00 50 56 a4 05 5c 03 23 01 01  .......PV..\.#..
 0040  00 00 00 00 00 00 03 23 01 07 00 00 00 00 00 00  .......#........
 0050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0060  00 00 00 00 00 00 00 00 00 00 00 00              ............


arp reply 00 50 56 a4 05 5c 00 50 56 91 25 40 08 06 00 01 08 00 06 04 00 02 00 50 56 91 25 40 03 23 01 07 00 50 56 a4 05 5c 03 23 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

 0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0010  00 4c 15 68 00 00 00 00 00 00 00 00 00 01 00 00  .L.h............
 0020  00 50 56 a4 05 5c 00 50 56 91 25 40 08 06 00 01  .PV..\.PV.%@....
 0030  08 00 06 04 00 02 00 50 56 91 25 40 03 23 01 07  .......PV.%@.#..
 0040  00 50 56 a4 05 5c 03 23 01 01 00 00 00 00 00 00  .PV..\.#........
 0050  00 00 00 00 00 00 00 00 00 00 00 00              ............

ping

          00 00 6c b7 00 00 00 1e bd 80 f2 19 08 00 45 00  ..l...........E.
 0040  00 64 00 6b 00 00 ff 01 f3 28 64 01 00 01 64 01  .d.k.....(d...d.
 0050  00 02 08 00 47 f2 00 29 00 04 00 00 00 00 00 15  ....G..)........
 0060  36 16 ab cd ab cd ab cd ab cd ab cd ab cd ab cd  6...............
 0070  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 0080  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 0090  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 00a0  ab cd 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00b0  00 00

ds_jib_bg_ch_cfg dhcp offer c0/0/0

 0000  01 12 00 00 00 95 f4 10 74 10 00 02 00 00 00 00  ........t.......
 0010  01 64 00 00 00 5e 04 00 00 00 00 00 00 00 00 00  .d...^..........
 0020  ff ff ff ff ff ff 00 1e bd 80 f2 19 08 00 45 00  ..............E.
 0030  01 46 00 50 00 00 ff 11 56 55 64 01 00 01 ff ff  .F.P....VUd.....
 0040  ff ff 00 43 00 44 01 32 fb ed 02 01 06 00 00 00  ...C.D.2........
 0050  40 25 00 00 80 00 00 00 00 00 64 01 00 02 64 01  @%........d...d.
 0060  00 01 00 00 00 00 00 00 25 40 00 00 00 00 00 00  ........%@......
 0070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00a0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00b0  00 00 00 00 00 00 62 61 73 69 63 31 31 2e 63 6d  ......basic11.cm
 00c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0130  00 00 00 00 00 00 63 82 53 63 35 01 02 36 04 64  ......c.Sc5..6.d
 0140  01 00 01 33 04 00 01 4e 86 3a 04 00 00 a7 43 3b  ...3...N.:....C;
 0150  04 00 01 24 b0 01 04 ff ff 00 00 04 04 64 01 00  ...$.........d..
 0160  01 02 04 ff ff 8f 80 07 04 64 01 00 01 03 04 64  .........d.....d
 0170  01 00 01 ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0180  00 00 00 00                                      ....


c0/0/1

 0000  01 12 00 00 00 95 00 00 00 00 00 08 00 00 00 00  ................
 0010  01 64 00 00 00 60 98 00 00 00 00 00 00 00 00 00  .d...`..........
 0020  ff ff ff ff ff ff 00 1e bd 80 f2 19 08 00 45 00  ..............E.
 0030  01 46 08 fa 00 00 ff 11 4d ab 64 01 00 01 ff ff  .F......M.d.....
 0040  ff ff 00 43 00 44 01 32 1b f3 02 01 06 00 0a 00  ...C.D.2........
 0050  b7 6c 00 00 80 00 00 00 00 00 64 01 00 2d 64 01  .l........d..-d.
 0060  00 01 00 00 00 00 00 00 6c b7 00 0a 00 00 00 00  ........l.......
 0070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00a0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00b0  00 00 00 00 00 00 62 61 73 69 63 31 31 2e 63 6d  ......basic11.cm
 00c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0130  00 00 00 00 00 00 63 82 53 63 35 01 02 36 04 64  ......c.Sc5..6.d
 0140  01 00 01 33 04 00 01 51 80 3a 04 00 00 a8 c0 3b  ...3...Q.:.....;
 0150  04 00 01 27 50 01 04 ff ff 00 00 04 04 64 01 00  ...'P........d..
 0160  01 02 04 ff ff 8f 80 07 04 64 01 00 01 03 04 64  .........d.....d
 0170  01 00 01 ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0180  00 00 00 00                                      ....


0 ./vmac -nhop_mac 00:50:56:91:25:40 -rphy_ip 3.35.1.7 -vmac_mac 00:50:56:a4:05:5c -vmac_ip 3.35.1.1 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 1 ./vmac -nhop_mac 00:50:56:91:6c:b7 -rphy_ip 3.35.2.8 -vmac_mac 00:50:56:a4:19:df -vmac_ip 3.35.2.2 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 2 ./vmac -nhop_mac 00:50:56:91:31:df -rphy_ip 3.35.3.8 -vmac_mac 00:50:56:a4:3c:bb -vmac_ip 3.35.3.2 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 3 ./vmac -nhop_mac 00:50:56:91:76:ac -rphy_ip 3.35.4.8 -vmac_mac 00:50:56:a4:6b:ff -vmac_ip 3.35.4.2 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 6 ./vmac -nhop_mac 00:50:56:91:77:81 -rphy_ip 3.35.7.8 -vmac_mac 00:50:56:a4:09:bb -vmac_ip 3.35.7.2 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 7 ./vmac -nhop_mac 00:50:56:91:0f:5e -rphy_ip 3.35.8.8 -vmac_mac 00:50:56:a4:4d:a1 -vmac_ip 3.35.8.2 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 8 ./vmac -nhop_mac 00:50:56:91:63:00 -rphy_ip 3.35.9.8 -vmac_mac 00:50:56:a4:45:91 -vmac_ip 3.35.9.2 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 9 ./vmac -nhop_mac 00:50:56:a4:15:28 -rphy_ip 3.35.0.8 -vmac_mac 00:50:56:a4:55:f6 -vmac_ip 3.35.0.2 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0

SR_INIT_SHELL=aux_do_system_shell IP_ADDRESS=3.33.11.25 IP_SUBNET_MASK=255.255.0.0 DEFAULT_GATEWAY=3.33.0.1 REAL_MGMTE_DEV= SR_MGMT_VRF=0

./vmac -nhop_mac 00:50:56:91:25:40 -rphy_ip 3.35.1.7 -vmac_mac 00:50:56:a4:1f:82 -vmac_ip 3.35.1.1 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 ./vmac -nhop_mac 00:00:00:00:00:00 -rphy_ip 0.0.0.0 -vmac_mac 00:00:00:00:00:00 -vmac_ip 0.0.0.0 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0

no rpd-ds 0 downstream-cable 0/0/7 profile 3 no rpd-us 0 upstream-cable 0/0/7 profile 3 rpd-ds 0 downstream-cable 0/0/0 profile 3 rpd-us 0 upstream-cable 0/0/0 profile 3


service log backtrace interface Te1/0/0

mac-address 0050.56a4.19df
ip address 3.35.2.2 255.255.255.0

cable rpd 2

identifier 0050.5691.6cb7
no rpd-ds 0 mute
no rpd-ds 0 shutdown
core-interface Te0/0/0
 principal
 rpd-ds 0 downstream-cable 1/0/0 profile 3
 rpd-us 0 upstream-cable 1/0/0 profile 3
rpd-event profile 0

!

binos/build/manifest/CGE7/vxe/vbr/

Not found core info for rpd 0050.5691.76ac local_addr 3.35.4.2

IPSEC_OK--------te0/0/0 no shutdown

reboot

 0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0010  00 50 56 91 25 40 00 50 56 a4 05 5c 08 06 00 01  .PV.%@.PV..\....
 0020  08 00 06 04 00 02 00 50 56 a4 05 5c 03 23 01 01  .......PV..\.#..
 0030  00 50 56 91 25 40 03 23 01 07 00 00 00 00 00 00  .PV.%@.#........
 0040  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 0050  00 00 00 00 00 00 00 00 00 00 00 00              ............

MAC Address IP Address I/F MAC Prim RxPwr Timing Num I

                                            State             Sid   (dBmv) Offset CPE P

0000.2540.0001 100.1.0.3 C0/0/1/U0 online 17 0.00 2083 1 N 0000.2540.0000 100.1.0.2 C0/0/1/U0 online 18 0.00 2083 1 N 0000.2540.0003 100.1.0.5 C0/0/1/U0 online 19 0.00 2083 1 N 0000.2540.0002 100.1.0.4 C0/0/1/U0 online 20 0.00 2083 1 N

Router#scm

                                                                                      D

MAC Address IP Address I/F MAC Prim RxPwr Timing Num I

                                            State             Sid   (dBmv) Offset CPE P

0000.2540.0000 100.1.0.2 C0/0/2/U0 w-online 19 0.00 2083 0 N 0000.2540.0001 100.1.0.3 C0/0/2/U0 w-online 20 0.00 2083 0 N 0000.2540.0003 100.1.0.5 C0/0/2/U0 w-online 21 0.00 2083 0 N 0000.2540.0002 100.1.0.4 C0/0/2/U0 w-online 22 0.00 2083 0 N 0000.2540.0007 100.1.0.9 C0/0/2/U0 w-online 23 0.00 2083 0 N 0000.2540.0006 100.1.0.8 C0/0/2/U0 w-online 24 0.00 2083 0 N 0000.2540.0005 100.1.0.7 C0/0/2/U0 w-online 25 0.00 2083 0 N 0000.2540.0004 100.1.0.6 C0/0/2/U0 w-online 26 0.00 2083 0 N 0000.2540.0008 100.1.0.17 C0/0/2/U0 w-online 27 0.00 2083 0 N 0000.2540.0009 100.1.0.16 C0/0/2/U0 w-online 28 0.00 2083 0 N 0000.2540.000f 100.1.0.18 C0/0/2/U0 w-online 29 0.00 2083 0 N 0000.2540.000e 100.1.0.19 C0/0/2/U0 w-online 30 0.00 2083 0 N 0000.2540.000b 100.1.0.20 C0/0/2/U0 w-online 31 0.00 2083 0 N 0000.2540.000a 100.1.0.21 C0/0/2/U0 w-online 32 0.00 2083 0 N 0000.2540.000d 100.1.0.14 C0/0/2/U0 w-online 33 0.00 2083 0 N 0000.2540.000c 100.1.0.15 C0/0/2/U0 w-online 34 0.00 2083 0 N


Router#scm

                                                                                      D

MAC Address IP Address I/F MAC Prim RxPwr Timing Num I

                                            State             Sid   (dBmv) Offset CPE P

0000.2540.0001 100.1.0.3 C0/0/7/U0 w-online 17 0.00 2083 1 N 0000.2540.0000 100.1.0.2 C0/0/7/U0 w-online 18 0.00 2083 1 N 0000.2540.0007 100.1.0.9 C0/0/7/U0 w-online 19 0.00 2083 1 N 0000.2540.0006 100.1.0.8 C0/0/7/U0 w-online 20 0.00 2083 1 N 0000.2540.0002 100.1.0.4 C0/0/7/U0 w-online 21 0.00 2083 1 N 0000.2540.0003 100.1.0.5 C0/0/7/U0 w-online 22 0.00 2083 1 N 0000.2540.0005 100.1.0.7 C0/0/7/U0 w-online 23 0.00 2083 1 N 0000.2540.0004 100.1.0.6 C0/0/7/U0 w-online 24 0.00 2083 1 N 0000.2540.0009 100.1.0.16 C0/0/7/U0 w-online 25 0.00 2083 1 N 0000.2540.0008 100.1.0.17 C0/0/7/U0 w-online 26 0.00 2083 1 N 0000.2540.000f 100.1.0.18 C0/0/7/U0 w-online 27 0.00 2083 1 N 0000.2540.000a 100.1.0.21 C0/0/7/U0 w-online 28 0.00 2083 1 N 0000.2540.000b 100.1.0.20 C0/0/7/U0 w-online 29 0.00 2083 1 N 0000.2540.000d 100.1.0.14 C0/0/7/U0 w-online 30 0.00 2083 1 N 0000.2540.000c 100.1.0.15 C0/0/7/U0 w-online 31 0.00 2083 1 N 0000.2540.000e 100.1.0.19 C0/0/7/U0 w-online 32 0.00 2083 1 N


ping packet

 0000  00 00 00 41 00 00 00 00 00 00 00 00 00 00 00 00  ...A............
 0010  41 00 81 54 42 00 00 00 00 02 00 07 24 00 01 01  A..TB.......$...
 0020  00 82 00 02 00 0b 80 00 00 00 00 00 00 00 00 00  ................
 0030  00 00 4c 52 00 00 00 1e 7a d1 c1 19 08 00 45 00  ..LR....z.....E.
 0040  00 64 09 12 00 00 ff 01 ea 7a 64 01 00 01 64 01  .d.......zd...d.
 0050  00 09 08 00 ce 88 00 53 00 03 00 00 00 00 04 5a  .......S.......Z
 0060  ab 11 ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 0070  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 0080  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 0090  ab cd ab cd ab cd ab cd ab cd ab cd ab cd ab cd  ................
 00a0  ab cd 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 00b0  00 00                                            ..

slot: 2 dest_ip: 10.10.0.2

UCS info

The 4 pcs UCS have installed, 2 pcs on rack U09 and 2 pcs on rack P03. Please see below for details.

GW: 10.75.12.1 Vlan: 53 Login: admin/cisco123! root/cisco123!

Rack IP address P03 10.75.12.3/25 P03 10.75.12.5/25 U09 10.75.12.7/25

         10.75.12.10-13/28 vlan 53 gateway 10.75.12.1
         route add default gw  10.75.12.1
         netstat -rn    看下路由
         DNS:64.104.123.144/cisco.com
         proxy:proxy.esl.cisco.com

U09 10.75.12.9/25

10.79.41.74/administrator@vsphere.local /Cisco123! /home/jianyzha/workspace/OpenRPD_deploy/vvm/www/vdep/vmdk telnet 172.22.75.178 10001 telnet 172.22.75.178 10002 creg vbr


RPD 1.console : telnet sh-cable-con-16 2010 2.eth : peicheng switch 43 第一次下载版本 3.光口:

30 ------------- node 41 -------------18( peicliu-ucs-sw) U07-Switch(sh-cable-con-15 2096) peicliu-ucs-sw(sh-cable-con-15 2086) F04SW: Telnet 80.4.1.21 then telnet 30.1.1.30 admin/lab e1/41 connect to ucs switch e1/30 can be used for your team’s node. ns-F04-SW# sho running-config interface ethernet 1/41 !Command: show running-config interface Ethernet1/41 !Time: Thu Jan 5 10:44:48 2017 version 6.0(2)U3(7) interface Ethernet1/41

 description Connect-ECS-VRPD
 switchport
 switchport mode trunk
 switchport trunk allowed vlan 511
 speed 1000

BRs Witten Xia From: Witten <wixia@cisco.com> Date: Thursday, 5 January, 2017 9:48 am To: "Yuan Liu (yuanliu2)" <yuanliu2@cisco.com> Cc: "Jun Zhang (jzhang2)" <jzhang2@cisco.com> Subject: [DOC]here are the documentation about bring up the node and get it online. Hi Liu Yuan, here are the documentation about bring up the node and get it online. Please check the wiki and attached file. http://cmtswiki.cisco.com:8080/display/battlestar/How+to+boot+up+Node For ppt, please just check slide 7, slid 8-10 maybe are too old and commands are changed. BRs Witten Xia

us config path

ios-d ------->cdman------>rphy-man----GCP---->node

gcp_send_us_scqam_cfg | | rphy_gcp_fsm_send_us_scqam_cfg | | ubripc_send_cdman_2_rphyman_msg | | ubr_ucd_send_to_rphy | | ubr_ump_mt_handle_msg_event | | ubr_ump_send_rphy_ucd_msg_to_mt | | ubr_map_builder_scqam_send_ucd_msg

bttail /tmp/fp/trace/cpp_cp_F0

ifconfig eth0 3.3.3.111 netmask 255.0.0.0 scp /harddisk/core/RP_0_cpp_cp_svr_908_20170309-214159-Universal.core.gz jianyzha@3.3.3.7:~/


10.124.8.75 xbr2 10.124.8.30 jianyzha :lab123 /home/jianyzha/xbr SR_INIT_SHELL=aux_do_system_shell IP_ADDRESS=3.3.3.11 IP_SUBNET_MASK=255.255.255.0 DEFAULT_GATEWAY=3.3.3.7 REAL_MGMTE_DEV= SR_MGMT_VRF=0


./vmac -nhop_mac 00:00:14:af:00:00 -rphy_ip 3.13.0.3 -vmac_mac 00:0c:29:fc:31:19 -vmac_ip 3.13.0.1 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0 ./vmac -nhop_mac 00:00:14:af:00:00 -rphy_ip 3.13.0.3 -vmac_mac 00:0c:29:fc:31:19 -vmac_ip 3.13.0.1 -rphy_if eth3 --us_mac_cpus 1 --ds_mac_cpus 2 --debug 0

big-endian in LC

iosd -clc big-endian socket_hdr->magic = htonl(CABLE_SOCKET_MAGIC); //如果是大端环境相当于没转,CABLE_SOCKET_MAGIC小端数据

需要将当前环境设为小端

  1. ifdef __INTEL_BIENDIAN
   #pragma byte_order(push,littleendian)
   #pragma extern_prefix(push,"")
  1. endif
  2. ifdef __INTEL_BIENDIAN

extern boolean cable_socket_encap_hdr(char *buf, int __le size,

       int __le msg_num, int __le client_id);
  1. else

extern boolean cable_socket_encap_hdr(char *buf, int size,

       int msg_num, int client_id);
  1. endif
  2. ifdef __INTEL_BIENDIAN
   #pragma byte_order(pop)
   #pragma extern_prefix(pop)
  1. endif