Professional Documents
Culture Documents
6%2+2 6%2+25WKVG 5Wkvg: 7xqqholqjsurwrfrov
6%2+2 6%2+25WKVG 5Wkvg: 7xqqholqjsurwrfrov
\hen set, this indicates that the Length ield is present, indicating the total
length o the receied packet. Must be set or control messages.
1he I and C bits are resered and must be set to 0. 1hese bit positions
represent options no longer present in L21P.
512 TCP/IP Su|te
F
I the l bit is set, both the Nr and Ns ields are present. l must be set or
control messages.
K
1he K bit is resered and must be set to 0.
C
\hen set, this ield indicates that the Oset Size ield is present in payload
messages.
Ver
1he alue o the er bit is always 002. 1his indicates a ersion 1 L21P
message.
Length
Oerall length o the message, including header, message type AVP, plus
any additional AVP's associated with a gien control message type.
Tunnel ID
Identiies the tunnel to which a control message applies. I an Assigned
1unnel ID has not yet been receied rom the peer, 1unnel ID must be set
to 0. Once an Assigned 1unnel ID is receied, all urther packets must be
sent with 1unnel ID set to the indicated alue.
Call ID
Identiies the user session within a tunnel to which a control message
applies. I a control message does not apply to a single user session within
the tunnel ,or instance, a Stop-Control-Connection-Notiication message,,
Call ID must be set to 0.
Nr
Currently transmitted packet.
Ns
Latest receied packet.
Payload messages hae two additional ields beore the AVP as ollows:
Offset size (16 bits) Offset pad (16 bits)
.aaitiova fiea. iv 21P a,oaa ve..age
$
Cffset s|te
1his ield speciies the number o bytes past the L21P header at which the
payload data is expected to start. It is recommended that data thus skipped
be initialized to 0s. I the oset size is 0, or the O bit is not set, the irst byte
ollowing the last byte o the L21P header is the irst byte o payload data.
AVP
1he AVP ,Attribute-Value Pair, is a uniorm method used or encoding
message types and bodies throughout L21P. 1he ormat o the AVP is
gien below:
16 32 bits
M H 0 0 0 0 Overall length Vendor ID
Attribute
Value
21P .1P .trvctvre
M
1he irst six bits are a bit mask, describing the general attributes o the AVP.
1he M bit, known as the mandatory bit, controls the behaior required o an
implementation which receies an AVP which it does not recognize.
H
1he hidden bit controls the hiding o the data in the alue ield o an AVP.
1his capability can be used to aoid the passing o sensitie data, such as
user passwords, as cleartext in an AVP.
Cverall length
Lncodes the number o octets ,including the oerall length ield itsel,
contained in this AVP. It is 10 bits, permitting a maximum o 1024 bytes o
data in a single AVP.
Vendor ID
1he IANA assigned SMI Network Management Priate Lnterprise Codes
alue, encoded in network byte order.
Attr|bute
1he actual attribute, a 16-bit alue with a unique interpretation across all
AVP's deined under a gien Vendor ID.
514 TCP/IP Su|te
&+9/
1he alue ield ollows immediately ater the Attribute ield, and runs or
the remaining octets indicated in the oerall length ,i.e., oerall length minus
six octets o header,.
%! /0.4/0
$
PPTP
IL1l drat
http:,,ino.internet.isi.edu:80,in-drats,iles,drat-iet-pppext-pptp-04.txt
PP1P ,Point to Point 1unneling Protocol, allows PPP to be channeled
through an IP network. It uses a client-serer architecture to decouple
unctions which exist in current Network Access Serers and support
Virtual Priate Networks. It speciies a call-control and management
protocol which allows the serer to control access or dial-in circuit
switched calls originating rom a PS1N or ISDN, or to initiate outbound
circuit switched connections. PP1P uses a GRL-like ,Generic Routing
Lncapsulation, mechanism to proide a low- and congestion-controlled
encapsulated datagram serice or carrying PPP packets.
1he ormat o the header is shown in the ollowing illustration:
16 32 bits
Length PPTP message type
Magic cookie
Control message type Reserved 0
!!%! 0,/07 897:.9:70
Length
1otal length in octets o this PP1P message including the entire PP1P
header.
PPTP message type
1he message type. Possible alues are:
1 Control message.
2 Management message.
Mag|c cook|e
1he magic cookie is always sent as the constant 0x1A2B3C4D. Its basic
purpose is to allow the receier to ensure that it is properly synchronized
with the 1CP data stream.
51 TCP/IP Su|te
Control Message Type
Values may be:
1 Start-Control-Connection-Request.
2 Start-Control-Connection-Reply.
3 Stop-Control-Connection-Request.
4 Stop-Control-Connection-Reply.
5 Lcho-Request.
6 Lcho-Reply.
Call Management
Outgoing-Call-Request.
8 Outgoing-Call-Reply.
9 Incoming-Call-Request.
10 Incoming-Call-Reply.
11 Incoming-Call-Connected.
12 Call-Clear-Request.
13 Call-Disconnect-Notiy.
Lrror Reporting
14 \AN-Lrror-Notiy.
PPP Session Control
15 Set-Link-Ino.
Keserved
A resered ield, must be set to 0.
DHCP
RlC 1531 http:,,www.cis.ohio-state.edu,htbin,rc,rc1531.html
1he Dynamic Host Coniguration Protocol ,DHCP, proides Internet hosts
with coniguration parameters. DHCP is an extension o BOO1P. DHCP
consists o two components: a protocol or deliering host-speciic
coniguration parameters rom a DHCP serer to a host and a mechanism
or allocation o network addresses to hosts.
1he ormat o the header is shown in the ollowing illustration:
8 16 24 32 bits
Op Htype Hlen Hops
XID
Secs Flags
Ciaddr
Yiaddr
Siaddr
Giaddr
Chaddr (16 bytes)
DCP beaaer .trvctvre
Cp
1he message operation code. Messages can be either BOO1RLQULS1 or
BOO1RLPL\.
Htype
1he hardware address type.
Hlen
1he hardware address length.
XID
1he transaction ID.
518 TCP/IP Su|te
Secs
1he seconds elapsed since the client began the address acquisition or
renewal process.
Flags
1he lags.
C|addr
1he client IP address.
|addr
1he \our` ,client, IP address.
S|addr
1he IP address o the next serer to use in bootstrap.
G|addr
1he relay agent IP address used in booting ia a relay agent.
Chaddr
1he client hardware address.
DHCPv 51
DHCPv
http:,,www.iet.org,internet-drats,drat-iet-dhc-dhcp6-14.txt
1he Dynamic Host Coniguration Protocol or IP6 ,DHCP6, enables
DHCP serers to pass coniguration inormation, ia extensions, to IP6
nodes. It oers the capability o automatic allocation o reusable network
addresses and additional coniguration lexibility. 1his protocol is a stateul
counterpart to the IP6 Stateless Address Autoconiguration protocol, and
can be used separately or together with the latter to obtain coniguration
inormation.
DHCP6 has 6 dierent message types: Solicit, Adertise, Request, Reply,
Release and Reconigure.
DHCP Sol|c|t message
A client transmits a DHCP Solicit message oer the interace to be
conigured, to obtain one or more serer addresses. Unless otherwise noted,
the alue o all ields are set by the client.
8 16 24 25 32 bits
Message type C reserved Prefix-size
Client link local address (16 octets)
Relay address (16 octets)
Saved agent address (16 octets)
DCP oicit ve..age .trvctvre
Message type
Value o 1 speciies a Solicit message.
C
Indicates that the client requests that all serers receiing the message
deallocate the resources associated with the client. \hen set, the client
should proide a saed agent address to locate the clients binding by a
serer.
Pref|x s|te
\hen non-zero, indicates the number o let-most bits o the agent`s IP6
address which conprise the routing preix.
520 TCP/IP Su|te
Keserved
Set to zero.
Cl|ent l|nk local address
IP link local address o the client interace rom which the client issued the
DHCP Request message.
Kelay address
Set by the client to zero. I receied by a DHCP relay this is set by the relay
to the IP address o the interace on which the relay receied the client`s
DHCP Solicit message.
Saved agent address
\hen present, indicates the IP address o an agent`s interace retained by
the client rom a preious DHCP transaction.
DHCP Advert|se message
A DHCP agent sends a DHCP Adertise message to inorm a prospectie
client about the IP address o a serer to which a DHCP Request message
may be sent. \hen the client and serer are on dierent links, the serer
sends the adertisement back through the relay whence the solicitation
came. 1he alue o all ields in the DHCP Adertise message are illed in by
the DHCP serer and not changed by any DHCP relay.
8 16 24 25 32 bits
Message type S reserved Preference
Client link local address (16 octets)
Agent address (16 octets)
Server address (16 octets)
Extensions
DCP .arerti.e ve..age .trvctvre
Message type
Value o 2 speciies an Adertise message.
S
I set, speciies that the serer address is present.
DHCPv 521
Preference
Indicates a serer`s willingness to proide serice to the client.
Cl|ent l|nk local address
IP link local address o the client interace rom which the client issued the
DHCP Request message.
Agent address
IP address o a DHCP agent interace on the same link as the client.
Server address
\hen present, the IP address o the DHCP serer.
Extens|ons
Described in the standard.
DHCP Kequest message
In order to request coniguration parameters rom a serer, a client sends a
DHCP Request message, and may append extensions. I the client does not
know any serer address, it must irst obtain one by multicasting a DHCP
Solicit message. 1ypically, when a client reboots, it does not hae a alid IP
address o suicient scope or the serer to communicate with the client. In
such cases, the client cannot send the message directly to the serer because
the serer could not return any response to the client. In this case, the client
must send the message to the local relay and insert the relay address as the
agent address in the message header.
8 16 24 25 32 bits
Message type C S R rsvd Transaction ID
Client link local address (16 octets)
Agent address (16 octets)
Server address (16 octets)
Extensions
DCP Reqve.t ve..age .trvctvre
Message type
Value o 3 speciies a Request message.
522 TCP/IP Su|te
K
I set, speciies that the client has rebooted and requests that all o its
preious transaction IDs be expunged and made aailable or reuse.
Transact|on ID
Unsigned integer identiier used to identiy this request.
1he remaining ields are described in the Solicit and Adertise messages.
DHCP Keply message
1he serer sends one DHCP Reply message in response to eery DHCP
Request or DHCP Release receied. I the request comes with the S bit set,
the client could not directly send the Request to the serer and had to use a
neighboring relay agent. In that case, the serer sends back the DHCP Reply
with the L bit set, and the DHCP Reply is addressed to the agent-address
ound in the DHCP Request message. All the ields in the DHCP Reply
message are set by the DHCP serer.
8 16 24 25 32 bits
Message type L Status Transaction ID
Client link local address (16 octets)
Extensions
DCP Re, ve..age .trvctvre
Message type
Value o 4 speciies a Reply message.
L
I set, the client link local address is present.
Status
May hae the ollowing alues:
0 Success
16 lailure, reason unspeciied
1 Authentication ailed or nonexistent
18 Poorly ormed Request or Release
19 Resources unaailable
20 Client record unaailable
21 Inalid client IP address in Release
DHCPv 523
23 Relay cannot ind serer address
64 Serer unreachable ,ICMP error,
Transact|on ID
Unsigned integer identiier used to identiy this Reply, copied rom the
client Request.
Cl|ent l|nk local address
I present, the IP address o the client interace which issued the
corresponding DHCP Request message. I the L bit is set, the client`s link-
local address is present in the Reply message. 1hen the Reply is sent by the
serer to the relay`s address which was speciied as the agent-address in the
DHCP Request message, and the relay uses the link-local address to delier
the Reply message to the client. 1he transaction-ID in the DHCP Reply is
copied by the serer rom the client Request message.
DHCP Kelease message
1he DHCP Release message is sent without the assistance o any DHCP
relay. \hen a client sends a Release message, it is assumed to hae a alid IP
address with suicient scope to allow access to the target serer. I
parameters are speciied in the extensions, only those parameters are
released. 1he alues o all ields o the DHCP Release message are entered
by the Client. 1he DHCP serer acknowledges the Release message by
sending a DHCP Reply.
8 16 24 25 32 bits
Message type D Reserved Transaction ID
Client link local address (16 octets)
Agent address (16 octets)
Client address (16 octets)
Extensions
DCP Reea.e ve..age .trvctvre
Message type
Value o 5 speciies a Release message.
524 TCP/IP Su|te
D
\hen set, the client instructs the serer to send the DHCP Reply directly
back to the client instead o using the gien agent address and link local
address to relay the Reply message.
Transact|on ID
Unsigned integer identiier used to identiy this Release, and copied into the
Reply.
1he remaining ields are described in the other DHCP messages.
DHCP Keconf|gure message
DHCP Reconigure messages can only be sent to clients which hae
established an IP address which routes to the link at which they are
reachable, hence, the DHCP Reconigure message is sent without the
assistance o any DHCP relay. \hen a serer sends a Reconigure message,
the receiers are assumed to hae a alid IP address with suicient scope to
be accessible by the serer. Only the parameters which are speciied in the
extensions to the Reconigure message need be requested again by the
client. A Reconigure message can either be unicast or multicast by the
serer. 1he client extracts the extensions proided by the serer and sends a
DHCP Request message to the serer using those extensions.
8 16 24 32 bits
Message type N Reserved Transaction ID
Server address (16 octets)
Extensions
DCP Recovfigvre ve..age .trvctvre
Message type
Value o 6 speciies a Reconigure message.
N
Indicates that the client should not expect a DHCP Reply in response to the
DHCP Request it sends as a result o the DHCP Reconigure message.
1he remaining ields are described in the other DHCP messages.
DVMKP 525
DVMKP
RlC 105: http:,,www.cis.ohio-state.edu,htbin,rc,rc105.html
IL1l drat:
http:,,www.iet.org,internet-drats,drat-iet-idmr-dmrp-3-08.txt
Distance Vector Multicast Routing Protocol ,DVMRP, is an Internet
routing protocol that proides an eicient mechanism or connectionless
datagram deliery to a group o hosts across an internetwork. It is a
distributed protocol that dynamically generates IP multicast deliery trees
using a technique called Reerse Path Multicasting
DVMRP combines many o the eatures o RIP with the 1runcated Reerse
Path Broadcasting ,1RPB, algorithm. DVMRP is deeloped based upon
RIP because an implementation was aailable and distance ector algorithms
are simple, as compared to link-state algorithms. In addition, to allow
experiments to traerse networks that do not support multicasting, a
mechanism called tvvveivg was deeloped.
DVMRP diers rom RIP in one ery important way. RIP routes and
orwards datagrams to a particular destination. 1he purpose o DVMRP is
to keep track o the return paths to the source o multicast datagrams. 1o
make the explanation o DVMRP more consistent with RIP, the term
ae.tivatiov is used instead o the more proper term .ovrce, howeer, datagrams
are not orwarded to these destinations, but rather, originate rom them.
DVMRP packets are encapsulated in IP datagrams, with an IP protocol
number o 2 ,IGMP,. All ields are transmitted in Network Byte Order.
DVMRP packets use a common protocol header that speciies the IGMP
Packet 1ype as DVMRP. DVMRP protocol packets should be sent with the
Precedence ield in the IP header set to Internetwork Control ,hexadecimal
0xc0 or the 1ype o Serice Octet,. 1he common protocol header is as
shown in the ollowing illustration:
8 16 24 32 bits
Type Code Checksum
Reserved Min version Maj version
D1MRP .trvctvre
Type
Packet type. 0x13 indicates a DVMRP packet.
52 TCP/IP Su|te
Code
Determines the type o DVMRP packet. Currently, there are codes or
DVMRP protocol message types as well as protocol analysis and
troubleshooting packets. 1he protocol message codes may be as ollows:
Probe Neighbor discoery.
Report Route exchange.
Prune Pruning multicast deliery trees.
Grat Grating multicast deliery trees.
Grat ack Acknowledging grat messages.
Checksum
16-bit one's complement o the one's complement sum o the DVMRP
message. 1he checksum must be calculated upon transmission and must be
alidated on reception o a packet. 1he checksum o the DVMRP message
should be calculated with the checksum ield set to zero.
Keserved
Resered or later use.
M|n vers|on
Minor ersion. Value must be 0xll or this ersion o DVMRP.
Maj vers|on
Major ersion. Value must be 3 or this ersion o DVMRP.
RlC 92 http:,,www.cis.ohio-state.edu,htbin,rc,rc92.html
Internet Control Message Protocol ,ICMP, messages generally contain
inormation about routing diiculties with IP datagrams or simple
exchanges such as time-stamp or echo transactions.
1he ICMP header structure is shown as ollows:
8 16 32 bits
Type Code Checksum
Identifier Sequence number
Address mask
CMP beaaer .trvctvre
1ype Code Description
0 Lcho reply.
3 Destination unreachable.
3 0 Net unreachable.
3 1 Host unreachable.
3 2 Protocol unreachable.
3 3 Port unreachable.
3 4 lragmentation needed and Dl set.
3 5 Source route ailed.
4 Source quench.
5 Redirect.
5 0 Redirect datagrams or the network.
5 1 Redirect datagrams or the host.
5 2 Redirect datagrams or the type o serice and
network.
5 3 Redirect datagrams or the type o serice and host.
8 Lcho.
11 1ime exceeded.
11 0 1ime to lie exceeded in transit.
11 1 lragment reassemble time exceeded.
12 Parameter problem.
13 1imestamp.
14 1imestamp reply.
528 TCP/IP Su|te
1ype Code Description
15 Inormation request.
16 Inormation reply.
Checksum
1he 16-bit ones complement o the ones complement sum o the ICMP
message starting with the ICMP 1ype. lor computing the checksum, the
checksum ield should be zero.
Ident|f|er
An identiier to aid in matching requests,replies, may be zero.
Sequence number
Sequence number to aid in matching requests,replies, may be zero.
Address mask
A 32-bit mask.
ICMPv 52
ICMPv
IL1l RlC 1885 190, 1995-12
http:,,www.cis.ohio-state.edu,htbin,rc,rc1885.html
1he Internet Control Message Protocol ,ICMP, was reised during the
deinition o IP6. In addition, the multicast control unctions o the IP4
Group Membership Protocol ,IGMP, are now incorporated with the
ICMP6.
1he structure o the ICMP6 header is shown in the ollowing illustration.
8 16 32 bits
Type Code Checksum
CMPr beaaer .trvctvre
Type
1he type o the message. Messages can be error or inormational messages.
Lrror messages can be Destination unreachable, Packet too big, 1ime
exceed, Parameter problem. 1he possible inormational messages are, Lcho
Request, Lcho Reply, Group Membership Query, Group Membership
Report, Group Membership Reduction.
Code
lor each type o message seeral dierent codes are deined.
An example o this is the Destination Unreachable message, where possible
messages are: no route to destination, communication with destination
administratiely prohibited, not a neighbor, address unreachable, port
unreachable. lor urther details, reer to the standard.
Checksum
Used to check data corruption in the ICMP6 message and parts o the
IP6 header.
530 TCP/IP Su|te
IGMP
IL1l RlC 1112 1989-08 http:,,www.cis.ohio-state.edu,htbin,rc,rc1885.html
1he Internet Group Management Protocol ,IGMP, is used by IP hosts to
report their host group memberships to any immediately neighboring
multicast routers. IGMP is a integral part o IP. It must be implemented by
all hosts conorming to leel 2 o the IP multicasting speciication. IGMP
messages are encapsulated in IP datagrams, with an IP protocol number o
2.
1he ormat o the IGMP packet is shown in the ollowing illustration:
4 8 16 32 bits
Ver Type Unused Checksum
Group address
CMP acet .trvctvre
Vers|on
1he protocol ersion.
Type
1he message type:
1 Host Membership Query.
2 Host Membership Report.
Unused
An unused ield.
Checksum
1he checksum.
Group address
In a Host Membership Report Message this ield holds the IP host group
address o the group being reported.