{"action":"closed","issue":{"url":"https://api.github.com/repos/scionproto/scion/issues/1764","repository_url":"https://api.github.com/repos/scionproto/scion","labels_url":"https://api.github.com/repos/scionproto/scion/issues/1764/labels{/name}","comments_url":"https://api.github.com/repos/scionproto/scion/issues/1764/comments","events_url":"https://api.github.com/repos/scionproto/scion/issues/1764/events","html_url":"https://github.com/scionproto/scion/issues/1764","id":349745805,"node_id":"MDU6SXNzdWUzNDk3NDU4MDU=","number":1764,"title":"Dispatcher unable to forward packet to service running in the same AS","user":{"login":"jinankjain","id":3854904,"node_id":"MDQ6VXNlcjM4NTQ5MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3854904?v=4","gravatar_id":"","url":"https://api.github.com/users/jinankjain","html_url":"https://github.com/jinankjain","followers_url":"https://api.github.com/users/jinankjain/followers","following_url":"https://api.github.com/users/jinankjain/following{/other_user}","gists_url":"https://api.github.com/users/jinankjain/gists{/gist_id}","starred_url":"https://api.github.com/users/jinankjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinankjain/subscriptions","organizations_url":"https://api.github.com/users/jinankjain/orgs","repos_url":"https://api.github.com/users/jinankjain/repos","events_url":"https://api.github.com/users/jinankjain/events{/privacy}","received_events_url":"https://api.github.com/users/jinankjain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-11T16:22:12Z","updated_at":"2018-08-14T08:46:54Z","closed_at":"2018-08-14T08:46:54Z","author_association":"CONTRIBUTOR","body":"Service running in the same AS\r\n\r\nThis scenario does not work\r\n\r\n```go\r\nraddrIA, _ := addr.IAFromString(\"2-ff00:0:222\")\r\nraddr := &snet.Addr{IA: raddrIA, Host: addr.SvcAP}\r\npub := &snet.Addr{IA: raddrIA, Host: addr.HostFromIP([]byte{127, 0, 1, 1}), L4Port: 30090}\r\nconn, err := snet.DialSCION(\"udp4\", pub, raddr)\r\nif err != nil {\r\n     return err\r\n}\r\nconn.Write([]byte(\"Hello World!\"))\r\n```\r\n\r\nService running in different AS\r\n\r\nThis scenario works fine\r\n\r\n```go\r\nraddrIA, _ := addr.IAFromString(\"1-ff00:0:133\")\r\nladdrIA, _ := addr.IAFromString(\"2-ff00:0:222\")\r\nraddr := &snet.Addr{IA: raddrIA, Host: addr.SvcAP}\r\npub := &snet.Addr{IA: laddrIA, Host: addr.HostFromIP([]byte{127, 0, 1, 1}), L4Port: 30090}\r\nconn, err := snet.DialSCION(\"udp4\", pub, raddr)\r\nif err != nil {\r\n     return err\r\n}\r\nconn.Write([]byte(\"Hello World!\"))\r\n```\r\n\r\nLooking at the dispatcher logs seems like dispatcher cannot handle first hop address as `ADDR_TYPE_SVC`\r\n\r\n```\r\n2018-08-11 16:19:18.471106+0000 [INFO] (30226:dispatcher:dispatcher.c:557) UDP registration request\r\n2018-08-11 16:19:18.471129+0000 [INFO] (30226:dispatcher:dispatcher.c:590) registration for isd_as 2-280375465083426\r\n2018-08-11 16:19:18.471161+0000 [INFO] (30226:dispatcher:dispatcher.c:617) registration for 127.0.1.1:30062\r\n2018-08-11 16:19:18.471184+0000 [INFO] (30226:dispatcher:dispatcher.c:634) SCMP registration included\r\n2018-08-11 16:19:18.471206+0000 [INFO] (30226:dispatcher:dispatcher.c:646) SVC (4) registration included\r\n2018-08-11 16:19:18.471229+0000 [INFO] (30226:dispatcher:dispatcher.c:726) assigned port 30062\r\n2018-08-11 16:19:23.984785+0000 [INFO] (30226:dispatcher:dispatcher.c:497) new socket created: 99\r\n2018-08-11 16:19:23.984883+0000 [INFO] (30226:dispatcher:dispatcher.c:539) received registration for proto: 17 (17 bytes)\r\n2018-08-11 16:19:23.984908+0000 [INFO] (30226:dispatcher:dispatcher.c:557) UDP registration request\r\n2018-08-11 16:19:23.984930+0000 [INFO] (30226:dispatcher:dispatcher.c:590) registration for isd_as 2-280375465083426\r\n2018-08-11 16:19:23.984957+0000 [INFO] (30226:dispatcher:dispatcher.c:617) registration for 127.0.1.1:30090\r\n2018-08-11 16:19:23.984981+0000 [INFO] (30226:dispatcher:dispatcher.c:634) SCMP registration included\r\n2018-08-11 16:19:23.985003+0000 [INFO] (30226:dispatcher:dispatcher.c:726) assigned port 30090\r\n2018-08-11 16:19:23.988493+0000 [ERROR] (30226:dispatcher:dispatcher.c:1233) Unsupported first hop address type 3\r\n2018-08-11 16:19:23.991318+0000 [INFO] (30226:dispatcher:dispatcher.c:1161) socket 99 closed from remote end\r\n2018-08-11 16:19:23.991356+0000 [INFO] (30226:dispatcher:dispatcher.c:1169) num_sockets now 90\r\n2\r\n```\r\n\r\nNot sure if its the expected behavior or bug in the dispatcher."}}
{"actor":{"display_login":"kormat"}}