sparse-modeのSPT switchover~基本動作~

Advent Calendar 2018 大國魂(ITブログ) の6日目です。

マルチキャストのsparse-modeが途中でツリーが切り替わる動作確認をしてみました。

SPT switchoverというそうです。

今回は普通にSPT switchoverが起きている状態を確認し、次にトラブルシュート的な内容にしたいと思います。

 

■構成図

f:id:TKCman:20181129200153p:plain

R5がサーバっぽく見えますがルータです。(アイコン変えてるだけ)

R2をランデブーポイント(以下、RP)としています。

 

マルチキャストトラフィック配信もとのサーバ(以下、sender)から
まず、RPへの送信元ツリーが作成されます。

senderからRP
sender -- > RP
(S,G)
→送信元ツリー

f:id:TKCman:20181129200554p:plain

▼同じタイミングでもそれより前でもいいのですが、multicast_R4の下にPCがぶら下がっている
状態があり、multicast_R4のようなルータをラストホップルータ(LHR)やreceiverなど
といったりします。(以下、receiver)
流れてくるトラフックの向きは、RP -- > recieverですが

共有ツリーが作成されるときはrecieverがigmp joinメッセージをRPに向けて送信し、共有ツリーが作成されます。

receiverからRPに向けて、共有ツリーというツリーが作成されます。
receiverからRP
reciever -- > RP
(*,G)
→共有ツリー

f:id:TKCman:20181129200740p:plain

▼最終的にsenderからreceiverにいく(S,G) にツリーができる(pim joinがsenderまで送られる)(*,G)→(S,G) にツリーがかわります。SPT switchoverという。
共有ツリーが送信元ツリーに変わるのが、switchoverなのだと思います。

 

f:id:TKCman:20181129201832p:plain

 

◇ ◇ ◇

 

ここから設定投入を開始。

(全部のルータのconfigは、トラブルシュートが終わった最後にどこかにおいておきます。IGP(OSPF)が動いていて、すべてのインターフェイスにip pim sparse-modeの設定が入っている…のが前提)

 

■R4をreciever(レシーバー)にする。
適当なマルチキャストのグループをR4のlo0に設定します。
(lo0にマルチキャストトラフィックを受信するPCが接続されているイメージ)
igmp-joinの225.1.1.1がマルチキャストのグループ

interface Loopback0
ip address 100.0.0.4 255.255.255.255
ip pim sparse-mode
ip igmp join-group 225.1.1.1
end

■ここで、R5から
ping 225.1.1.1 repeat 100
します。(pingマルチキャストトラフィックを流している状態を再現)

(S,G)
RP -- > sender
→送信元ツリー

ができて、そのあと


(S,G)
RP -- > sender
→送信元ツリー

 

R5はまだ何もない状態

R5#sho ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.0.1.40), 00:19:38/00:02:46, RP 100.0.0.2, flags: SJPCL
Incoming interface: Ethernet0/0, RPF nbr 192.168.25.2
Outgoing interface list: Null


pingが成功すると

R5#ping 225.1.1.1 re
R5#ping 225.1.1.1 repeat 100
Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to 225.1.1.1, timeout is 2 seconds:

Reply to request 0 from 100.0.0.4, 21 ms
Reply to request 1 from 100.0.0.4, 1 ms
Reply to request 2 from 100.0.0.4, 1 ms
Reply to request 3 from 100.0.0.4, 1 ms
R5#


R4#sho ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 225.1.1.1), 00:13:04/stopped, RP 100.0.0.2, flags: SJCL
Incoming interface: Ethernet0/0, RPF nbr 192.168.34.3
Outgoing interface list:
Loopback0, Forward/Sparse, 00:13:04/00:02:05

(192.168.25.5, 225.1.1.1), 00:00:19/00:02:40, flags: LJT
Incoming interface: Ethernet0/0, RPF nbr 192.168.34.3
Outgoing interface list:
Loopback0, Forward/Sparse, 00:00:19/00:02:40

(*, 224.0.1.40), 00:18:13/00:02:50, RP 100.0.0.2, flags: SJPCL
Incoming interface: Ethernet0/0, RPF nbr 192.168.34.3
Outgoing interface list: Null

R4#

先ほどまでR4になかった、(S,G)のツリー(赤字の(192.168.25.5, 225.1.1.1))ができていることが確認できます。

 

R5はpingをうってからしばらくすると
mrouteから(S,G):(192.168.25.5, 225.1.1.1)が消えます。

pingした直後は、(192.168.25.5, 225.1.1.1)があるけど

R5#sho ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 225.1.1.1), 00:03:26/stopped, RP 100.0.0.2, flags: SPF
Incoming interface: Ethernet0/0, RPF nbr 192.168.25.2
Outgoing interface list: Null

(192.168.25.5, 225.1.1.1), 00:03:26/00:00:06, flags: PFT
Incoming interface: Ethernet0/0, RPF nbr 0.0.0.0, Registering
Outgoing interface list: Null

(*, 224.0.1.40), 00:30:37/00:02:44, RP 100.0.0.2, flags: SJPCL
Incoming interface: Ethernet0/0, RPF nbr 192.168.25.2
Outgoing interface list: Null

 

しばらくすると(192.168.25.5, 225.1.1.1)がなくなる。

R5#
R5#sho ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 225.1.1.1), 00:03:45/00:02:47, RP 100.0.0.2, flags: SP
Incoming interface: Ethernet0/0, RPF nbr 192.168.25.2
Outgoing interface list: Null

(*, 224.0.1.40), 00:30:56/00:02:25, RP 100.0.0.2, flags: SJPCL
Incoming interface: Ethernet0/0, RPF nbr 192.168.25.2
Outgoing interface list: Null

R5#

 

トラブルシュートに続く

ipv6_リンクローカル重複

Advent Calendar 2018 大國魂(ITブログ) の5日目です。

表題にあるとおり、ipv6_リンクローカル重複させてみるとどうなるか試してみました。

ipv6のアドレスを配っているルータ(R1)のリンクローカルアドレスipv6のprefixを受け取るルータ(R2)でリンクローカルアドレスを重複させるとどうなるか?といった内容です。(この記事で試しているipv6のグローバルユニキャストアドレスの取得方法としては、ステートレス(DHCPサーバがアドレス管理をしない)自動というもの)

 

■構成図はすごく単純で

R1---R2

といった感じです。

configも至ってシンプル。

R1側:

interface Ethernet0/1.12
encapsulation dot1Q 12
ipv6 address FC00:1:1:12::1/64
ipv6 nd prefix FC00:1:1:12::/64
ipv6 nd ra suppress all
end

R2側:

R2(config-subif)#do sho run int e 0/1.12
Building configuration...

Current configuration : 89 bytes
!
interface Ethernet0/1.12
encapsulation dot1Q 12
ipv6 address autoconfig default

R1が「FC00:1:1:12::/64」のprefixを配っています。

(ここで使っているFC00~のアドレスは、グローバルユニキャストではありません。ユニークローカルアドレスというipv4で言うのプライベートアドレスと同じものです。)

■R2のipv6のルーティングテーブル見るとR1からprefixを受け取って、自分で

ipv6のアドレスも自動で作成(DHCPのステートレス)いることが

確認できます。

R2(config-subif)#do sho ipv6 route
IPv6 Routing Table - default - 13 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, ls - LISP site
ld - LISP dyn-EID, a - Application
ND ::/0 [2/0]
via FE80::A8BB:CCFF:FE00:110, Ethernet0/1.12
~中略~
NDp FC00:1:1:12::/64 [2/0]
via Ethernet0/1.12, directly connected
L FC00:1:1:12:A8BB:CCFF:FE00:210/128 [0/0]
via Ethernet0/1.12, receive
L FF00::/8 [0/0]
via Null0, receive

 

-------------

R1とR2でリンクローカルを重複させてみます。

R2(config-subif)#ipv6 address FE80::1 lin
R2(config-subif)#ipv6 address FE80::1 link-local
R2(config-subif)#
%IPV6_ND-4-DUPLICATE: Duplicate address FC00:1:1:12::1 on Ethernet0/1.12
R2(config-subif)#
%IPV6_ND-6-DUPLICATE_INFO: DAD attempt detected for FE80::1 on Ethernet0/1.12
R2(config-subif)#
R2(config-subif)#
R2(config-subif)#do sho ipv6 route
IPv6 Routing Table - default - 11 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, ls - LISP site
ld - LISP dyn-EID, a - Application
~中略~
NDp FC00:1:1:12::/64 [2/0]
via Ethernet0/1.12, directly connected
L FF00::/8 [0/0]
via Null0, receive
R2(config-subif)#

重複前にあったFC00:1:1:12:A8BB:CCFF:FE00:210/128 [0/0]

のアドレスがなくなりました!!

 

同じタイミングでのR1で行った設定

ipv6 nd ra suppress allを消しています。デフォルトでは、シスコの機器はRAを送信してしまう(https://www.infraexpert.com/study/ipv6z14.html

)ので、設定投入までは、RAを停止(ipv6 nd ra suppress all)していました。

R2からくるRSに返信しない状態

R1(config-subif)#no ipv6 nd ra suppress all
R1(config-subif)#
R1(config-subif)#
R1(config-subif)#
%IPV6_ND-6-DUPLICATE_INFO: DAD attempt detected for FC00:1:1:12::1 on Ethernet0/1.12
R1(config-subif)#ipv6 add
R1(config-subif)#ipv6 address lin
R1(config-subif)#ipv6 address FE80::1 li
R1(config-subif)#ipv6 address FE80::1 link-local
R1(config-subif)#
R1(config-subif)#
%IPV6_ND-4-DUPLICATE: Duplicate address FE80::1 on Ethernet0/1.12
R1(config-subif)#

 

<所感>
■偽のRAを送っているわけではないので、セキュリティ機能(ra guard)で
はじかれてしまうことはない。
でもIPアドレスをもらえないのは自分だけかも…

クラウド上のサーバとかでlink-local使わないなら影響ないかも

ipv6OSI参照モデルにまたがってる動作しているところがある。
link-local ---ネットワーク層 データリンク層にまたがる。
IP層の機能であるRAを利用して、上位層で利用するためのDNS情報を
配送することがレイヤーバイオレーションであり ---RAがDNS(アプリケーション層?L7?)の動作を制御する。

http://www.geekpage.jp/blog/?id=2017-1-10-1
http://hy0.hatenablog.com/entry/2018/01/19/232911

 

The Fall's Gonna Kill Youの内容

そのまま、貼り付け。

podcastとちょっと聞き比べてみましたが、文章が抜けたりしてますね。

support for this NPR Podcast in the following message come from TransUnion your credit health is so much more than a score that's why they help you stay on top of it protected and understand it get your report and more at transunion.com NPR
walking to car talk on national public radio with us Click and Clack the tappet brothers were broadcasting this week from the center for gender numismatics Here Car Talk Plaza with joint the brain is the theory we will put on during a few weeks ago right here on NPR why men never pay for anything with the change speaker have $10 worth of change in their pockets and they would still pulled a dollar bill to pay for candy but I think I have that 40
dollars $672.59 in change is this true number 1 bus number one isn't true right and if it's true B2B why is it true and we received quite a bit of mail will this is even tell who wrote The Letter by whether it's a woman out there I think that's good news once Emily Johnston from says France women's Pockets I have like guns mace etcetera so is change heavy women spend the coins to lighten the load men being big and strong and Macho parenthesis and stupid
Terry the damn stuff around I'll maybe they can't count who knows that's what his another one like the sound of coins jingling in my pocket I realize me well that's right now lot of people talked about the jingling of the coin I mean why do women use change to pay for purchases let me count the reasons a women wish to be helpful don't cashiers and sales people always need change to what she's got a right to go swimming a better better able to handle details then I'm most men
when they're paying the bill they can quickly recall that 10 dimes are four quarters equal $2 for men this would require an unreasonable amount of time men carry changing their pockets which they usually empty on to the bureau in the midwest we say dresser top before they retire each evening I do this a man may continue to do this until the pop on the Bureau of caves in but this really happened because his children take the change or his wife use it to pay the paper girl on the paper boy as a result men may choose to start fresh everyday when I want to carry pocketbooks parenthesis in the midwest we say person and will continue to accumulate more change everyday unless they use it as fuel fuel have full how do you visit the chiropractor on a regular basis that other that I hope that this is been helpful deeded has
list of all this spare change and put it in the container container to the station and said if you just took all the change that's on all the bureaus in America they would not have to mint coins for 25 years while we could we could erase the national debt to change the sending you loose change it's all in the sofas everyone knows that want to talk about cars all you want to read for 500 won't let it go karts are cats 888-227-8255 hello you're on Car Talk
1978 Datsun 280Z has about a hundred and fifty thousand miles on it but lately I've been having problems with the way the car idles okay first of all about a month ago so it would idle too fast and in traffic I would have to punch the gas to get it to slow down while changing gears I just a couple of jobs
the gas pedal is low and it sounds like it's almost going to die when I'm not driving the car or I'm letting it idle and I hear a rattling noise under the hood rattle 78 my God what is he done to fix this problem when you were complaining of the sticky hide what you must have complained it hasn't worked on this problem that's good this is Christine problem there are no predispositions by Vinnie and other mechanics
it's what I would have to say you probably this car's fuel injection
and I would say you perhaps have a worn throttle body that is a warm throttle body that is a thing that is the part of the of the intake mechanism on this car to the throttle cables attached and it has a flapper would have very little air and if it's possible for it to come to rest at a different spot every time when you take your foot off the gas the throttle plate and come to rest of the different position and sometimes make the car race is sometimes make it not race or run to slowly is going to be here position of that plate determines how much air goes in which in turn determines how much fuel goes in which in turn determines how fast it goes
so it could be a million different things but that's just that's just one possibility not guessed it that because of the age of the car when I was going to guess that the cable itself was worn and that would be even easier they don't think it could be my lifters one person said it might be molesters person is wackle
no it doesn't give me the lifters because you don't have lifters especially likely but it's not because you don't have any other but it was a mechanic that wasn't familiar with these cars whatever reason it's entirely possible that the reason it's idling was idling fast with the weather was colder a month ago
it was 80 degrees at one time and then before that was snowing that you need to tune up your air filter might be dirty you cover enough bases in you're bound to be right and idea is to give her one answer just want 20 answers she got 20 other people you got 20 or he's all right answers possibly the other ones I throttle body will figure it out right away or Sticky Wicket he'll figure that out too bye bye
Five Below your on car talking hi this is Elizabeth from Lexington but Lexington Massachusetts my handbrake probably a minor problem but the little button you know that your push in there like a Justice in and out it's popped out it is impossible to fix this and tell me that I'd rather rebuild the engine and try to fix this in my hand in the car door in fact that was a reason that my wife sold for 76 Volvo which in all other respects was brand new in there it just doesn't work doesn't have any old is in there but it's it's it's loose attached all the way out if you care to
exactly fun nothing will happen I mean you'll be a meltdown anything like that if you really want to fix it what you have to do is at the end of that button rather attached that button is a long skinny rod and then at the end of that Rod is up there's a bump in it or a hump and then has to engage the little Paul that Engage The Ratchet that is attached to the cable guy has to go up over the phone but it's not an easy thing to do because the part is flipped around now is not engaging the ratchet and back off on the cables and hook the thing back up you need for hands to do it but it takes 5 minutes to do the first one took me a week to have my wife bring me sandwiches everyday when I stayed in the car and took me awhile to figure out what after that I got to the point where I could literally do it in 5 minutes
I'm in the know like if you taking him to the Corner Gas Station they will be in the same situation that my brother was when he threw the first one so, we will take them away cuz I'll charge it 200 bucks where is if you went to the dealer they would do it probably in 5 minutes and they will charge it 200 Bucks roster 2006 you're better get a block of wood and put it under the wheel when you're stopping that'll keep her from Rolling away so we have it have it fixed you need it but it's it's only a few dollars it's easy yeah that's it on hold for 2 hours for that sleep I'll text your call okay bye-bye +188-888-227-8255 hello you're on car talking hi Bob calling from Baltimore what's up it's really not a problem but I recently bought a Crown Victoria
Yasser police car specialist
oh yeah and everything they make those cars for the policeman it's the most luxurious thing I've ever been that's all you how many miles on this thing got the equivalent of 480 because for every mile that the engine runs that it's been driven there's four miles that they've been waiting for coffee. The cars are you can't it it's it's supposed to be a lot I don't know what kind of artist was shut it off shut the engine manual to figure out the reason this car with 480000 miles on it
riding a brand new car the squeaker rattle in it great but it does have a noise under the hood that's what I'm calling you about
when it accelerates I hear like the motor is really racing I took it to a mechanic he said that's not the motor that's the fan clutch would they put me on play He Could Be Right the fan clutch could make noise fan clutch that's what I wanted to know what we're hoping you know actually it's about a hundred and twenty five bucks or something like that but better news than having the engine be making a noise what's the fishes vicious vicious and does not rigidly connected to the water pump it doesn't turn to each Revolution other ways of thinking Freewheel but as it heats up okay the oil that's in that thing heats up and makes the fan Ventura at the right speed for when your stuck in traffic for example the clutch will actually walk this
up in the fan will turn fast enough so that the engine will cool off basic reason for his when you're driving along at 60 miles an hour or 55 of course in Baltimore then you don't need the fan to be spinning so it's sort of three-wheel stress that Coolio rushes to the radiator cools the the engine off the cools off the fan clutch to start the free wheels or the water pump which is driving me which is driving the fan will be going around at 3000 and 4000 RPM whatever the engines doing but the war but the fan won't be going that fast and not robbing power from the engine that's the whole idea but it's a fan clutch itself is bad it will make a roaring noise while driving this guy said it was the fan clutch he's probably right he's right you just got to confirming opinions here
I never heard of a fan clutch in my life well 64 years old you obviously have nobody
how to replace a fan clutch and all your noises will be gone now then you'll hear all the other noises that this car has all the rod Nockels. Coming through and you realize it really does have 480 don't worry about a thing good luck with this baby I like Crown Vics big cock in my Chevy cars built for the policeman I thought you got a tilt steering wheel and a split bucket seat with an armrest in the. What kind of agency did you want before you bought this car after you to do ads for them this man traded in His Cadillac to buy a Ford Crown Vic with four
what they call about something for your call alright thank you for the voice the fan clutch shock your brain into remembering last week's Puzzler but can we use a little less electrical current that we did last week my ears are still like smoldering a motorized two-wheel vehicle is called a what my car on an average day but I was looking for motorcycle back in the sixties you had a fight with a Hells Angels over a blank I had a broad abroad
what does it mean
and even though leprechaun healthy radios with Lucky Charms whenever they hear us say it this is NPR our up first team goes to work while you're sleeping that way you wake up to the freshest take on the day's news it's the 10-minute Morning News podcast from NPR listen to up first on the NPR one app or wherever you get your podcast
hi Rebecca listen to car talk with us Click and Clack the tappet brothers and we here to talk about cars car repair and the the answer to last week's Puzzler nowadays Puzzler came from an email that someone sent this but I lost some years ago and why was there I decided it would be fun to buy myself a motorcycle especially considering that I was at the motorcycle shop conducting the transaction that this fellow recognizing that I was a serviceman said you going to ship this thing back to the States when your tour of duty is over
I said yarn fact I am he says well this something you have to change before you can drive this thing in America and I said oh really
what can I buy this thing from you he says no I don't have one
but you'll certainly have no trouble getting one when you get it back home and the question is what did I have to change on this bike before it would be legal to drive in America regal regal Regal Drive in America
and the answer is this is either going to be brilliant or I have I have to say I have been thinking about this is as luck would have it I say I read this email ages ago and are friends of ours Mark Nichols has a buddy Hayden who's from England his motorcycle there like this guy did well I have already narrowed it down to invite Germany fry already I already knew that buys his motorcycle in England and I have to buy out a different mirror no not a different mirror and I asked him did you have to change the
headlight and he says yes in fact I did because the British drive on the left hand side of the road the reflector in the headlight is aimed to the left so that if you driving straight down the road and traffic is coming toward you and you are driving now straight down the road in America spend on the right light headlight people as they approach you because the reflectors in American headlights in the bean slightly to the right right hand driving what I didn't know that well I decided it had to be the mirror and have to be England but then I didn't like that answer because they're playing motorcycle and you are ready to pounce on me this is fine even though it may be bogus you're not showing from Decatur Georgia and for having his answer selected at random from the
Harlem correct answers that we got Allen is going to get a $26 gift certificate to the Shameless Commerce Division of cartalk.com with which he can get a LCD collection called her talk cartoons the car talk compendium of disrespectful Carson summer jincy like when he was waiting for that tow truck to pull them out of the creek in his rental car in California if he popped in the CD and play it's a rental which includes the words there's something about a rental that feels so appealing it may be a you go but your goal freewheeling and he drove that baby right into the water
but he didn't send a copy to the lawyers he doesn't think they're quite ready to laugh about the whole thing yet anyway we'll have another Automotive half of Today Show the meantime will take your call at +188-880-687-8227 eight two level five below your on Car Talk
hi Erin are you one of those. Com type people actually wow what's the formula for aluminum carbonate Real Steel 3rl to seal tree you put a l c o 328-203-2342 and I got some nasty now when I said that too
you have a PhD in chemistry from the cable man Back to Basics you know I like the sound of al2 CO3 don't you talk I receive what sounds right so what's up to the fact that my husband taught me how to drive standard I just want you to know that we have a clock here in the studio 3 minutes ago we haven't even mentioned
how to drive again your husband and I was recently in the car with my friend John and he said no no no this is how you drive manual and so what Mark does is my husband Mark he always gears down when he's falling down you know to use the engine to slow the car and my friend John shift the car into neutral if the car down puts on the break and then when you stopping or when he stopped already he puts the car in the first so that he can start weight but my husband Mark says no no no no no that's really dangerous because the car is not in gear do you know this damn both take new lessons
learn how to drive no just do what your husband says by and pick up the mission in and forget what your boyfriend said submission that didn't you read that book
whatever your husband says is but is de-facto the way to do it now it's the other way around
the wrong information really know the answer well they're both wrong is the answer but your husband what's wrong then your boyfriend
boyfriend I'm sorry I'm kind of evil mine
the guy who says throw it into neutral come to a coast and then stop and then throw it in the first he's got it he's really whack when you stop you everything he's the one you're completely in neutral with your foot off the clutch only when you are ready to go should you step on the clutch and shifter in the first get rear-ended and your airbags blow and you become unconscious you know you're probably be dead any of the Raging Rapids below and Sundance Kid says I can't swim and board says Where you getting the fall is like candy
at the correct thing to do because you don't want you would rather have to turn the engine off what you're not going to do or have your foot constantly on the clutch pedal which if nothing else will cause you to get a monsterous left leg when he favors his left leg because it's twice the size of his right leg in spite of what Engineers of redness of the Contrary we're out when they're used I don't give a thing was designed the last 5 million miles if you keep your foot on the pedal the proper wear out faster than it will give your foot off the pedal what is the correct way to slow down and slow down by stepping on the brake and not secure down in the future if you're in a high gear you want to slow down quickly you can use the engine to slow you down too bye.
shifting as Mark your husband said for the purpose of slowing down
venue one fact about the clutch break fast in the clutch is not is Gil designed to slow the car down the brakes are really the other school the car down so you can use both but you should rely primarily unless you're in a situation where you been going way too fast and you need to slow down in a hurry you should rely primarily on the brakes to slow the car down but you always leave the car in gear when you're slowing down and never take it out of gear and said just saw your husband is Mom alright then John that your boyfriend and your boyfriend
cuz I have to go back to him tonight 78255 car talk to James hi James from where New York New York I like the Brooklyn Manhattan the Bronx you must be way out in the island Montauk car etiquette question for you guys edicate man about town bon vivant all that
and you know everybody's telling us that we should register for you know all these things that you wouldn't by right sterling silver who the hell needs unless I was going to give it to you right exactly chafing dishes and stuff like that right
wall plaques epic I have a bunch of that all of this was promulgated by the sterling silver industry because they know that nobody would ever go out and buy this stuff on his or her all the marital industrial complex
if you would not go out what kind of get married great what are we going to buy our Sterling so you register and then people don't buy it because I don't know what the hell to buy you what it's either these either that or they have to give you real money right here you know what you taste it worth housing people sterling silver anyway continue that'll be useful if that's all you want I get about the stupid toasters in the wall plaques in the chafing dishes go for it
well you say where registered at the Lexus dealer downtown
would you ask people to like to buy into a share of a car with gas and buy a fender I mean you know I suppose you could do it that way to couldn't you buy it I share I mean it so you would know that you got it would be unfortunate way of finding out the value of each person's gift wrapping guess you don't want it worth 400 bucks while you know first of all you have no you don't you don't know it will you return it at Joe's Lexus dealer and then you can go and sign up and he said they say well he needs a full fenders or actually three of them are already taken care of steering wheel engine transmission it would be interesting I wish you would only get about 200 parts and they were about 12000 in the car
yeah we went we going to have the sterling silver Syndicate all over we may we make some great idea
I guess depending on how expensive the car directly related by 400 people from a guy who's got two sons
my daughter one of my lovely daughters was recently married and she thought it was a great deal she said this is great looking all the stuff I'm getting what a great deal I said for whom is it a great deal she's getting all the stuff I'm paying for all the dinners all don't be bitter
what J's I think you should give you have about 350 guests you can get the LS400 if they let me see that would be
no no no no no no no people you need a thousand people that's why I wrote down 35 47 50 people if they are kicked in about a hundred twenty five bucks a piece which is I would say below average below average for wedding gift sure don't forget a couple is going to always so generous so you don't go for the Lexus if you have a new tradition I I like to get involved in this you know what to do you tell people you are registered with Click and Clack we will make up the list of Park
right and for like water with skim like 15 20% off the top and will send you the rest and you go to whatever you get my bad James have a wonderful life before we get to the new puzzle and I know you can't wait we have to take a short break away cuz it's going to take a break
I'm sick of this mindless Conformity I'm sick of being a slice of a clock whatever the spontaneity Innovation American engine
I don't even know Tom gjelten books a week-long immersion at swamiji's yoga Palace whenever he hears us say it this is NPR
every other Friday look back on the week and say to yourself what just happened
I'm Sam Sanders podcast it's been a minute where every Friday we catch up on the news and the culture of the week and try to make sense of it all listen on the NPR one app or wherever you get your podcast
listen to car talk with us and we discuss cars car repair and what you said was going to be an automotive paying attention this is Automotive okay I heard if you don't pay attention now the day in the shop I had to Toyota Camry Side by eat but it wouldn't fire up and the other one was in for an emissions test so I say to Ralph
to lease two cars
so he takes the emissions tester probably sticks in the tailpipe of a car what you supposed to do the emissions test you open the hood
next thing I know he's cranking this car won't start it doesn't start
I sit there and start in stock and he turns the Keegan course it doesn't start it does the same thing that the first card yet and I say to him when he tells me it's like catching a cold you put the car too close together exactly how you put the tester in the first car the guy drove the car in the hoodie. Something he gets inside he turns the key and the thing cranks and cranks she doesn't feel like a minute and it doesn't start
now he does give me the same thing for the car which didn't run he's trying to figure out why this car doesn't run right and he's also trying to do I presume some kind of an emissions test in the other car so I can't figure out why and he sticks out you went to the wrong car that's why you that's what I assumed I didn't know what it was explained to me what he's doing and I say
what's he doing if you think you know the answer right on the back of a $20 bill and send it to puzzle Tower Car Talk Plaza box 3500 Harvard Square Cambridge Mass 02238 or you can do an electronic funds transfer we love those and email your answer on a $20 bill to us from cartalk.com if you'd like to call us our number is +188-888-227-8255 hello you're on car talk talk to you I don't give a hang about the car speed a little bit for about 5 or 10 minutes or longer and then I have to stop an idle for a while I could stop light or something it goes into a
period of heavy breathing
and if I have my hand on the gear shift it pulled almost imperceptibly to the right and shakes little bit and then stop complaining bitterly about having to run to fast although I make them to answer for speeding up and slowing down and speeding up and slowing down you don't have a tachometer do you know the old days what is it what do you call a Toyota pickup truck about a 90
to about you're really into this vehicle I would say you're one of the old Toyota Honda one of those yeah and it's about a 92 kind of a car I have I stay at white one if you want to go see enough I mean pretty soon I guess it was just telling us is at some point we will simply have generic card that have no names on them that's the way it should be a lot of trouble
we would service think this thing we just for a few minutes or a few seconds and I really don't know for a while usually I'm in a hurry and I either take off a dinner at turn the motor off do what I have to do otherwise yeah oh yes wonderfully
Jeepers Creepers you're right this is an interesting okay stop with the questions yeah that's about right actually
vacuum Packer bear you mean if I vacuumed it is that you may have a vacuum leak you may have a vacuum leak while there could be something wrong with the with the air flow sensor this thing has I believe in air flow sensor because it's fuel injected and they may be something wrong with that other maybe something wrong with the coolant temp sensor or the air temp sensor that for whatever reason is causing this thing to search because it's sending a funny signal to the computer which controls the fuel injection and that's what's going on and it could be something as simple as in correct timing causing the whole thing if it was if it runs well otherwise that it could be something simple as a faulty sensor or just a something to set incorrectly maybe the air bleed screw in and out too far out too far but they would all the time go
and sometimes all it takes is that you run the engine and always high speed for a few minutes and then you come to a stop and maybe it's just on the verge of doing it begins to do it I bet you can sit there long enough it'll probably come down to normal take one of these guys for a ride I'm taking you for a ride you took one of them for a ride just to him that they turn into that they check the curb idle speed the timing and the position of the year the air bleed one of those three things are going to give you the answer you just met me
what were the time and we haven't known you now we know when you're coming through Los Molinos please stop and see me if we show up see you later bye-bye 1888 Carta call +1-888-227-8255 hello you're on car talking hi hi Eric where you from I'm from Brighton right across the river from your fair City what was toward begins with my father she's had this long time dream of driving the Alcan Highway to Alaska
now he's retired so we can actually do it and well when you first had this dream my mom said count her out and doing self well no no that's where the story of leading girlfriend looking for a girlfriend
so then he has his brothers but they immediately found more important obligations root canal that they like that so so then he has told his friends and their reaction was this is a crazy thing to do at our age we're not coming either crazy things to do in his cage but that's alright I know the question is do we want to go get the first half of the question is it looks like me and my sister are going
so first half is we said we're going but it's not too late we actually get in the car and when I think of being in a car in the Canadian wilderness with two adult family members for 3 weeks yeah I think like recipe for disaster right maybe number one half is should we go and question number second half is if we do go what kind of car should you rent
okay so I was doing exactly the same thing my brother was done with my father said he wanted to do this my mother of course would say count me out right anyone else he would say count me out because everyone else he goes is that my sister is wacky enough to say I'll do it then if one of the boys will do it and it won't be me cheap we on we may be giving him ideas I'm not even realizing I'm leaving my phone off most of the day
imagine spending three weeks in the car don't forget 1/3 of the time your sis is going to be driving what kind of car should we rent the second half I had I thought about this little bit right now it should be sturdy reliable good handling 20 cases of tuna fish packed in water to the Alaskan king crab
give me a foot where I want to be in a GMC Suburban so would I a GMC Suburban worry about it's all gravel wheel drive GMC Suburban plenty of room
nice soft rides on keep you from getting 2 to 6 and we can fall asleep you can fall asleep in like a sport utility vehicle huh well actually quite frankly from from my experience taking lengthy road trips there is nothing like a conversion van or whatever the Ford van we don't want to sleep in this thing I'll tell you it is great to be able to modify that rear seat into a bit predictable after like 9 hours of the road when your father and sister have been arguing for three of those 9 hours and you can't stand it anymore and you're on the verge of killing one or both of them going to be nice to just go in the way back they aren't roll up with a nice book did these things come with like assertive of isolation feature so you don't hear the other people yesterday
that would that would tip the balance in their favor
if you're really lucky maybe you'll need emergency surgery on on something like a hangnail so they can't have to go without you I mean I see it as either this is going to be a bonding experience of all-time your father and your sister will be closer together than you've ever been that's the one possibility of the possibility is a GMC Suburban yeah I believe you can eat when you're when you're traveling like that for weeks at a time everyone needs his space right
diary everyone to keep a diary July 11th again
yeah it would be interesting if the three of you kept a diary and don't show them to each other of course but you could all she could show them to us to you I would I was thinking of keeping a journal cuz otherwise known as believe what went on in court as what you're saying I wish you the very very best of luck I think you'll be able to use a diary in court it'll be proud of your character Witnesses who's taking many trips like this with family members like the bigger the better go big okay hope they have a wonderful time thank you
I can't think of anything worse
and spending three weeks in a car Charles all about that you get to relive those days of your childhood alright I'll go I'll go get you waste another perfectly good I was listening to Car Talk our esteemed producer is Doug the subway fugitive not a slave to Fashion Bongo boy bourbon our social produces a day but the Cavs of Belleville green and Catherine frog Lucas are lost the old gray mare assisted by Connie bridgeford our theme music is by David dawg grisman and our technical spiritual and menu advisor just back from his Triumph at the Manitoba March Madness manicotti monkey fist
our customer care representative is Haywood your buzz off our document security expert from the island of Jamaica is yerba tea supplement not related to our Taylor euripides I meant of these or to our staff bouncing buddies I break your Facebook or to the proprietor of our men's clothing shop the Ripper days you won't have these out of divorce attorney is Carmine not yours I will credit counselor is maxed out walking the plank tile meteorologist from the New Delhi offices Luke out of bingo our director of pavlovian research is Isabel pranking you show for his beak off and drop off the bank or and kartik poker game is nuchal I put in and I receive question test for is Mike Easter are cheap Council from the law firm of Dewey cheatem & Howe is you Lewis duly noted with 800 SATs in Harvard Square is Huey Louie Dewey thanks so much was me where Click and Clack the tappet brothers and remember don't drive like Mike
suggestion will be back next week bye bye
you can get a podcast of this show which is number 1811 subscribe to our weekly podcast and check out our poorly curated clothing and best of collections all over at cartalk.com target.com ever wish you could talk to people who own the exact same car as you ask them if they have that same weird angry house after he stops mom left her as well now you can post questions to other people who own your exact card it's called ask someone who owns one post your question it goes out to other car owners and you get notified when you start getting answers.com
tacos reproduction of Dewey cheatem & Howe and WBUR in Boston and even though hog farm return to each other and say imagine working around that all day whenever they hear this is NPR support for this podcast in the following message come from discover get your free credit score card with your FICO credit score it's available to everyone even if you're not a customer at discover.com credit score card limitations apply

 

 

 

行動経済学の逆襲 (早川書房)という本を
読み始めて、Car Talkというラジオの話が面白い…と書いてあって気になったので
検索したところ、podcastがあることを発見。
字幕とかあれば、英語の勉強になるかもしれないので
googleAPIでちょっと作ってみようと思い立ちました。

https://www.npr.org/podcasts/510208/car-talk
から
試しに1話分をダウンロードしてみます。

MARCH 17, 2018
#1811: The Fall's Gonna Kill You
をダウンロードしてみました。

ここから先のGoogle Cloud Speech API使う手順は以下URLを

参考にさせていただきました。

qiita.com

 

自分がひっかかったところを差分として、書いておきます。
音声ファイルがmp3だとそのまま使えないそうなので
変換します。
https://audio.online-convert.com/convert-to-flac

音声の変換方法も指定されたフォーマットでサンプリングの

周波数なども正しく指定しないといけないみたいです。

  • FLAC
  • モノラル
  • 16000Hz
  • 16bit

f:id:TKCman:20180322153654p:plain

正しく指定せずにやったら、最後のスクリプト実行のところでエラーが出て進みませんでした。

 

 Google Cloud Speech APIからCloud Speech API…ちょっと名前が変わってる。「有効」にします。

f:id:TKCman:20180322134957p:plain

 

「3. APIの認証情報の作成(サービスアカウントキーの作成)」のところで

サービスアカウントキーを作ろうとしたら、役割が必要と出てきてどうしたもんかと

f:id:TKCman:20180322135309p:plain

ちょっと調べたところ

Google Cloud Platform のサービスアカウントキーを作成する | MAGELLAN BLOCKS

とりあえず編集者にすればよいようなので編集者にしました。

コンソールでアップロード

f:id:TKCman:20180322140053p:plain

 

あとは、手順どおりで特に問題なしでした。

ファイル完成までは、20分ぐらいかな。

できたファイル output20180322-xxxxx.txt

コンソールでダウンロードして完了です。

 

tera termの便利設定

tera termの便利設定です。

一つ目を設定しておけば、tera termのウィンドサイズ変えても字が消えません。

二つ目は、勝手にウィンドウが消えるのを防止してくれます。

両方やった後に、設定--設定の保存で、TERATERM.INIを上書きしておけば設定が残ります。

 

設定--その他の設定

「ウィンドウサイズ変更時に…」のところのチェックをはずす

f:id:TKCman:20180322120849p:plain

 

設定--TCP/IP

「自動的にウィンドウを閉じる」のチェックをはずす

f:id:TKCman:20180322120952p:plain