sctp init не включает параметр адреса ipv4 в некоторых случаях - PullRequest
0 голосов
/ 08 мая 2019

Sctp init не несет параметр адреса ipv4, когда я использую «192.169.201.60» в качестве основного адреса, но когда я использую «172.17.42.3», тогда он работает нормально.

Это происходит последовательно, и яЯ путаюсь с этим поведением.

Так что он работает нормально, когда IP-адрес источника 172.17.42.3, но не работает, когда IP-адрес источника 192.169.201.60.

См. ниже чанк из tcpdump, когда "Параметр адреса IPv4 "включен:

Frame 2338: 100 bytes on wire (800 bits), 100 bytes captured (800 bits)
Linux cooked capture
Internet Protocol Version 4, Src: 172.17.42.3, Dst: 172.17.42.5
Stream Control Transmission Protocol, Src Port: 54314 (54314), Dst Port: 3868 (3868)
    Source port: 54314
    Destination port: 3868
    Verification tag: 0x00000000
    [Association index: 0]
    Checksum: 0x00000000 [unverified]
    [Checksum Status: Unverified]
    INIT chunk (Outbound streams: 10, inbound streams: 65535)
        Chunk type: INIT (1)
        Chunk flags: 0x00
        Chunk length: 52
        Initiate tag: 0xc29ebee4
        Advertised receiver window credit (a_rwnd): 32767
        Number of outbound streams: 10
        Number of inbound streams: 65535
        Initial TSN: 3242577996
        IPv4 address parameter (Address: 172.17.42.3)
        IPv4 address parameter (Address: 192.169.201.60)
        Supported address types parameter (Supported types: IPv4)
        ECN parameter
        Forward TSN supported parameter

See below chunk from tcpdump when "IPv4 address parameter" not included:
Frame 2340: 84 bytes on wire (672 bits), 84 bytes captured (672 bits)
Linux cooked capture
Internet Protocol Version 4, Src: 192.169.201.60, Dst: 192.169.201.62
Stream Control Transmission Protocol, Src Port: 43213 (43213), Dst Port: 3868 (3868)
    Source port: 43213
    Destination port: 3868
    Verification tag: 0x00000000
    [Association index: 1]
    Checksum: 0xcdb3ff13 [unverified]
    [Checksum Status: Unverified]
    INIT chunk (Outbound streams: 10, inbound streams: 65535)
        Chunk type: INIT (1)
        Chunk flags: 0x00
        Chunk length: 36
        Initiate tag: 0x1d8a2c1b
        Advertised receiver window credit (a_rwnd): 32767
        Number of outbound streams: 10
        Number of inbound streams: 65535
        Initial TSN: 3195157733
        Supported address types parameter (Supported types: IPv4)
        ECN parameter
        Forward TSN supported parameter

Так что я чувствую, что поведение sctp должно быть хорошо в обоих случаях.

...