HP 800 HP DLPI Programmer's Guide - Page 25

Physical Attachment Identification, DL_BIND_REQ, DL_ENABMULTI_REQ, and DL_PROMISCON_REQ

Page 25 highlights

Introduction to DLPI The Data Link Layer Physical Attachment Identification The physical point of attachment (PPA in Figure 1-2) is the point at which a system attaches itself to a physical communications medium. All communication on that physical medium funnels through the PPA. On systems where a DLS provider supports more than one physical medium, the DLS user must identify which medium it will communicate through. A PPA is identified by a unique PPA identifier. For media that supports physical layer multiplexing of multiple channels over a single physical medium (such as the B and D channels of ISDN), the PPA identifier must identify the specific channel over which communication will occur. Two styles of DLS provider are defined by DLPI, distinguished by the way they enable a DLS user to choose a particular PPA. The style 1 provider assigns a PPA based on the major/minor device the DLS user opened. This style of provider is appropriate when few PPAs will be supported. If the number of PPAs a DLS provider will support is large, a style 2 provider implementation is more suitable. The style 2 provider requires a DLS user to explicitly identify the desired PPA using a special attach service primitive. For a style 2 driver, open(2) creates a stream between the DLS user and DLS provider, and the attach primitive then associates a particular PPA with that stream. The format of the PPA identifier is specific to the DLS provider. DLPI provides a mechanism to get and/or modify the physical address. The primitives to handle these functions are described in Chapter 2. The physical address value can be modified in a postattached state. This modifies the value for all streams for that provider for a particular PPA. The DLS user uses the supported primitives, DL_ATTACH_REQ, DL_BIND_REQ, DL_ENABMULTI_REQ, and DL_PROMISCON_REQ, to define a set of enabled physical and SAP address components on a per-stream basis. The DL_ATTACH_REQ primitive addresses PPA identification (physical medium identification). It is invalid for a DLS provider to ever send upstream a data message for which the DLS user on that stream has not requested. The provider is responsible for enforcing the isolation of SAP and physical address space effects on a per-stream basis through necessary means. Chapter 1 25

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226

Introduction to DLPI
The Data Link Layer
Chapter 1
25
Physical Attachment Identification
The physical point of attachment (PPA in Figure 1-2) is the point at
which a system attaches itself to a physical communications medium. All
communication on that physical medium funnels through the PPA. On
systems where a DLS provider supports more than one physical medium,
the DLS user must identify which medium it will communicate through.
A PPA is identified by a unique PPA identifier. For media that supports
physical layer multiplexing of multiple channels over a single physical
medium (such as the B and D channels of ISDN), the PPA identifier
must identify the specific channel over which communication will occur.
Two styles of DLS provider are defined by DLPI, distinguished by the
way they enable a DLS user to choose a particular PPA. The style 1
provider assigns a PPA based on the major/minor device the DLS user
opened. This style of provider is appropriate when few PPAs will be
supported.
If the number of PPAs a DLS provider will support is large, a style 2
provider implementation is more suitable. The style 2 provider requires
a DLS user to explicitly identify the desired PPA using a special attach
service primitive. For a style 2 driver,
open(2)
creates a stream between
the DLS user and DLS provider, and the
attach
primitive then
associates a particular PPA with that stream. The format of the PPA
identifier is specific to the DLS provider.
DLPI provides a mechanism to get and/or modify the physical address.
The primitives to handle these functions are described in Chapter 2. The
physical address value can be modified in a postattached state. This
modifies the value for all streams for that provider for a particular PPA.
The DLS user uses the supported primitives, DL_ATTACH_REQ,
DL_BIND_REQ, DL_ENABMULTI_REQ, and DL_PROMISCON_REQ,
to define a set of enabled physical and SAP address components on a
per-stream basis. The DL_ATTACH_REQ primitive addresses PPA
identification (physical medium identification).
It is invalid for a DLS provider to ever send upstream a data message for
which the DLS user on that stream has not requested. The provider is
responsible for enforcing the isolation of SAP and physical address space
effects on a per-stream basis through necessary means.