<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 12.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWProtocolIP/Metadata/serviceClass",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network12NWProtocolIPC8MetadataC12serviceClassAA12NWParametersC07ServiceF0Ovp"
  },
  "title" : "serviceClass"
}
-->

# serviceClass

A specific service class to mark on an IP packet.

```
var serviceClass: NWParameters.ServiceClass { get set }
```

## See Also

[`var serviceClass: NWParameters.ServiceClass`](/documentation/Network/NWParameters/serviceClass-swift.property)

The traffic characteristics network connections send and receive.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)