onvif / specs

ONVIF Network Interface Specifications
Other
338 stars 90 forks source link

Queries related to Uplink spec #395

Closed bsriramprasad closed 5 months ago

bsriramprasad commented 7 months ago
  1. [Specification Text] Each camera shall use an individual ascending interval strategy to avoid that all cameras connect at the same time.
    • How is this possible unless camera A knows the pattern of camera B?
      • Unless this pattern configurable from client into devices? OR
      • depends on implementation and hence may be out of scope? 2) [Specification Text] If the uplink list contains multiple entries the device shall try to establish all connections in parallel.
    • Isn't this device/implementation dependent behavior to do it parallel or sequential?

3) [Specification Text] Since http/2 streams may be closed by either side when the content-length has been reached clients shall use a value large enough for the connection life time.

bsriramprasad commented 6 months ago

20240312 Video Enhancement F2F

  1. Requirement included NOT to flood the cloud service with uplink requests, Agree to close.
  2. Not too convinced with the discussion, further discussion below.
  3. Specific requirement included to address Apple clients, Agree to close.

Further discussion on point 2

Here are 2 Possible interpretations of the requirement text for non-native English speaker

  1. The device should attempt to create connections to all entries in the uplink list at the same time, without waiting for one connection to be established before trying the next.

  2. The device should try to establish connections to each entry in the uplink list one after another, but if there are multiple connections that can be established simultaneously (such as connections to different servers), it should do so.

I understand the use case that device to keep connection simultaneously to say vendor cloud and 3rd party cloud. But that doesn't mean the device needs to set up or initiate those connections exactly at the same time?

If a device is a bit short on resources, It may set those connections one by one and that should not disqualify the device in adhering to the uplink specification.

Ideally, it shouldn't matter how and when the device gets connected to multiple clouds as long as it can keep those parallel connections alive - which keeps up the spirit of the specification.

Proposal

venki5685 commented 6 months ago

device connecting to multiple clouds one bye one or or simultaneously is device implementation specific behavior, ONVIF interface(i.e Uplink spec here) should not mandate it.

HansBusch commented 5 months ago

The connection to all in parallel has been defined by purpose for allowing multiple cloud services using the same camera. We had a discussion on alternates but dropped that because such things can be solved differently.

bsriramprasad commented 5 months ago

@HansBusch Its not about having connections to multiple cloud services - but It is about ONVIF specifying how those connections are made to those services "shall try to establish all connections in parallel."

Here is the updated proposal

HansBusch commented 5 months ago

Got your point and agree.