Summary of the invention
Embodiments of the invention provide a kind of method and apparatus that obtains the action of link layer support, can solve the problem that prior art can not obtain the Motor ability of media link support.
Embodiments of the invention provide a kind of method that obtains the action of link layer support, comprising:
Independent medium switching functional entity sends the request command of inquiry link layer action to link layer;
Link layer is determined the action of its support, and by action lists independent medium switching functional entity is returned in the action of link layer support.
The embodiment of the invention also discloses a kind of method that obtains the action of link layer support, comprising:
The local media independent handover (mih) functions sends media-independent to the distant end media independent handover (mih) functions and switches inquiry request command, and described media-independent switches the action lists option that inquiry request command comprises that link layer is supported;
The distant end media independent handover (mih) functions sends media-independent switching inquiry directive command to the irrelevant client layer that switches of distant end media, and described media-independent switches the inquiry directive command and comprises the action lists option that link layer is supported;
The irrelevant client layer that switches of described distant end media sends media-independent switching inquiry request command to described distant end media independent handover (mih) functions, and described media-independent switches the action lists option that inquiry request command comprises that link layer is supported;
Described distant end media independent handover (mih) functions sends the request command of inquiry link layer action to described far-end link layer;
Described far-end link layer is determined the action of its support, and returns described distant end media independent handover (mih) functions by the action that action lists is determined link layer;
Described distant end media independent handover (mih) functions switches client layer to media-independent and returns the order of media-independent switching acknowledgment of your inquiry, described media-independent switches the action lists option that the acknowledgment of your inquiry order comprises that link layer is supported, the action lists option of described link layer support comprises the action that link layer is supported;
The irrelevant switching of described distant end media client layer is arranged on the action of described link layer support in the action lists option of media-independent switching inquiry response order, sends described media-independent to described distant end media independent handover (mih) functions and switches the inquiry response order;
Described distant end media independent handover (mih) functions returns media-independent to the local media independent handover (mih) functions and switches the inquiry response order.
The embodiment of the invention also discloses a kind of device that obtains the action of link layer support, comprise independent medium switching functional entity and link layer entity,
Described independent medium switching functional entity is used for sending to link layer entity the request command of inquiry link layer action, and receives the action lists that link layer entity returns;
Described link layer entity is used for the request command of the inquiry link layer action of receiving media independent handover (mih) functions transmission, and determines the action of its support, and the action of determining is arranged in the action lists, tabulates to the independent medium switching functional entity return action.
According to the embodiment of the invention, by in the order primitive of existing order primitive or redetermination, increasing the action lists option that link layer is supported, make MIHF and MIH client layer can obtain the action that link layer is supported, thereby make MIHF and MIH client layer to send the moving request of link to link layer according to the link action of link layer support, action is effectively operated to link, has improved system effectiveness.
Embodiment
Understand and realization the present invention the existing embodiments of the invention of describing by reference to the accompanying drawings for the ease of persons skilled in the art.
Embodiment one
As shown in Figure 1, present embodiment provides a kind of method that obtains the action of media link layer support, comprising:
Step 11, MIH client layer send media-independent switching capability inquiry request command (MIH_Capability_Discover.request) to MIHF, described media-independent switching capability inquiry request command comprises the action lists option that link layer is supported, when the action lists option of link layer support is effective, the action that the inquiry link layer is supported, when the action lists option of supporting when link layer is invalid, needn't inquire about the action that link layer is supported.In the present embodiment, suppose that the action lists option that link layer supports is effective.
In order to obtain the action that link layer is supported, need extended medium independent handover capability inquiry request command, namely in media-independent switching capability inquiry request command, increase action lists (SupportedLinkActionList) option that link layer is supported.Like this, media-independent switching capability inquiry request command primitive is as follows:
MIH_Capability_Discover.request(
DestinationIdentifier,
SupportedMihEventList,
SupportedMihCommandList,
SupportedIsQueryTypeList,
SupportedTransportList
SupportedLinkActionList
)
In order to obtain the action that link layer is supported, go back the new order primitive of definable (as media-independent handoff links layer action query requests (MIH_Link_Action_Discover.request)) and come alternate medium independent handover capability inquiry request command, as:
MIH_Link_Action_Discover.request(
DestinationIdentifier,
SupportedLinkActionList
)
After step 12, MIHF receive media-independent switching capability query requests, send the request command of inquiry link layer action to link layer.
The request command of described inquiry link layer action comprises existing order (as, link layer capability query request command) or the newly-increased order (as link layer action inquiry request command) of expansion.
Step 13, link layer are determined the action of its support.
According to different systems, the action that link layer is supported is different, and for example, the action that link layer is supported in P802.21-D05 is as follows:
LINK_DISCONNECT (link disconnection)
LINK_LOW_POWER (link dormancy)
LINK_POWER_DOWN (under the link)
LINK_NO_ACTION (link is failure to actuate)
LINK_RESOURCE_RETAIN (link maintenance)
DATA_FORWARDING_REQUEST (data forwarding request)
LINK_POWER_UP (link powers on)
The action that step 14, link layer will be determined is arranged in the action lists.
The action identification of determined action in the step 13 can be arranged in the action lists, when comprising this action identification in the action lists, the expression link layer is supported this action, otherwise link layer is not supported this action.
Also the effective status form of determined action in the step 13 with the action identification position can be arranged in the tabulation, at this moment, the everything of supporting at first definite this system of needs, the corresponding action identification position of each action, when link layer was supported this action, the action identification position of this action was set to effective status.
Step 15, link layer are tabulated to the MIHF return action.
When the request command of described inquiry link layer action was link layer capability query request command, the described tabulation to the MIHF return action specifically comprised: action lists is arranged on the link layer ability confirms in the order; Tabulate to the MIHF return action by link layer ability affirmation order.Described link layer ability is confirmed to have increased the action lists parameter in the order.
When the request command of described inquiry link layer action was link layer action inquiry request command, the described tabulation to the MIHF return action specifically comprised: action lists is arranged in the order of link layer action acknowledgment of your inquiry; Tabulate to the MIHF return action by the order of link layer action acknowledgment of your inquiry.Described link layer action inquiry request command is the redetermination order, and the order of described link layer action acknowledgment of your inquiry is the redetermination order.
Step 16, MIHF send the media-independent switching capability to the MIH client layer and confirm order (MIH_Link_Action_Discover.confirm).Described media-independent switching capability confirms that request command comprises the action lists option that link layer is supported, the action lists option of link layer support comprises the action that link layer is supported.
In order to obtain the action that link layer is supported, need the order of extended medium independent handover capability acknowledgment of your inquiry, namely in the order of media-independent switching capability acknowledgment of your inquiry, increase action lists (SupportedLinkActionList) option that link layer is supported.Like this, media-independent switching capability acknowledgment of your inquiry order primitive is as follows:
MIH_Capability_Discover.confirm(
SourceIdentifier,
SupportedMihEventList,
SupportedMihCommandList,
SupportedIsQueryTypeList,
SupportedTransportList,
SupportedLinkActionList
Status
)
In order to obtain the action that link layer is supported, go back the new order primitive of definable (as media-independent handoff links layer action acknowledgment of your inquiry (MIH_Link_Action_Discover.confirm)) and come the order of alternate medium independent handover capability acknowledgment of your inquiry, as:
MIH_Link_Action_Discover.confirm(
SourceIdentifier,
SupportedLinkActionList
Status
)
To step 16, the method for the action of local acquisition media link layer support has been described in step 11.Wherein, step 12 has been described local MIHF to 15 and has been obtained the process that the support of link-local layer moved, and this partial content will be further described at embodiment two and embodiment three.
In the present embodiment, also can obtain the action that the media link layer is supported from far-end, describe the flow process that obtains the action of media link layer support from far-end below in conjunction with Fig. 2.
Step 21, local MIH client layer send media-independent switching capability inquiry request command to local MIHF, described media-independent switching capability inquiry request command comprises the action lists option that link layer is supported, when the action lists option of link layer support is effective, the action that the inquiry link layer is supported, when the action lists option of supporting when link layer is invalid, needn't inquire about the action that link layer is supported.In the present embodiment, suppose that the action lists option that link layer supports is effective.
Step 22, after local MIHF receives media-independent switching capability inquiry request command, send media-independent switching capability inquiry request command to far-end MIHF.
Step 23, far-end MIHF send media-independent switching capability inquiry directive command (MIH_Capability_Discover.indication) to the far-end MIH client layer on its upper strata, and the link capability parameter in the described media-independent switching capability inquiry directive command is consistent with the link capability parameter in the media-independent switching capability inquiry request command.
In order to obtain the action that link layer is supported, need extended medium independent handover capability inquiry directive command, namely in media-independent switching capability inquiry directive command, increase action lists (SupportedLinkActionList) option that link layer is supported.Like this, media-independent switching capability inquiry directive command primitive is as follows:
MIH_Capability_Discover.indication(
SourceIdentifier,
SupportedMihEventList,
SupportedMihCommandList,
SupportedIsQueryTypeList,
SupportedTransportList
SupportedLinkActionList
)
In order to obtain the action that link layer is supported, go back the new order primitive of definable (as media-independent handoff links layer action inquiry indication (MIH_Link_Action_Discover.indication)) and come alternate medium independent handover capability inquiry directive command, as:
MIH_Link_Action_Discover.indication(
SourceIdentifier,
SupportedLinkActionList
)
Step 24, far-end MIH client layer obtain the action that the media link layer supports (preparation method referring to step 11 to 16) according to the link capability parameter in the media-independent switching capability inquiry directive command, return media-independent switching capability inquiry response order (MIH_Capability_Discover.response) to described far-end MIHF then, the order of described media-independent switching capability inquiry response comprises the action lists that link layer is supported.
In order to obtain the action that link layer is supported, need the order of extended medium independent handover capability inquiry response, namely in the order of media-independent switching capability inquiry response, increase action lists (SupportedLinkActionList) option that link layer is supported.Like this, media-independent switching capability inquiry response order primitive is as follows:
MIH_Capability_Discover.response(
DestinationIdentifier,
SupportedMihEventList,
SupportedMihCommandList,
SupportedIsQueryTypeList,
SupportedTransportList,
SupportedLinkActionList
Status
)
In order to obtain the action that link layer is supported, the order primitive that also definable is new (as media-independent handoff links layer action inquiry response order (MIH_Link_Action_Discover.response)) comes the order of alternate medium independent handover capability inquiry response, as:
MIH_Link_Action_Discover.response(
DestinationIdentifier,
SupportedLinkActionList
Status
)
Step 25, far-end MIHF return media-independent switching capability inquiry response order (MIH_Capability_Discover.response) to local MIHF, and the order of described media-independent switching capability inquiry response comprises the action lists that link layer is supported.
Step 26, local MIHF send the media-independent switching capability to local MIH client layer and confirm order (MIH_Link_Action_Discover.confirm).
Step 12 to 15 in, in order to obtain the action that link layer is supported, need expand (expanding as the link layer ability being confirmed order) to existing order primitive, perhaps define new order primitive (as increasing link layer action inquiry request command).No matter be to revise existing order primitive or definition newer command primitive, be exactly to increase a tabulation shape parameter SupportedLinkActionList (the link layer action lists of support) in order primitive, this parameter is used for comprising the link action that the media link layer is supported; Like this, when the request command of media link layer in the inquiry link layer action that receives the MIHF layer, the media link layer can feed back to MIHF with the action of the link of its support by the SupportedLinkActionList parameter, like this, MIHF just can send the moving request of link to link layer according to the link action of link layer support, action is effectively operated to link, has improved system effectiveness.When the MIH client layer sent media-independent switching capability inquiry request command to MIHF, MIHF can return to the MIH client layer with the link action of the link support that obtains, and the MIH client layer is switched media link effectively.
According to the method difference of explosion command primitive, by specific embodiment MIHF obtains the action of media link layer support from link layer method is described below.
Embodiment two
As shown in Figure 3, present embodiment confirms that by expansion link layer ability order provides a kind of method that obtains the action that the media link layer supports, describes the method for the action that the acquisition media link layer of present embodiment supports below with reference to Fig. 3.
Step 31, MIHF send link layer capability query request command to link layer.
In order to save data quantity transmitted, also can in link layer capability query request command, increase ability parameter option to be checked (action lists of the list of thing of support, the command list (CLIST) of support, support).Like this, the form of link layer capability query request command is as follows:
Link_Capability_Discover.request(
SourceIdentifier,
Supported Link EventList,
Supported Link CommandList,
SupportedIsQueryTypeList,
SupportedTransportList
SupportedLinkActionList
)
The form of link layer capability query request command is consistent with the form of media-independent switching capability inquiry request command, make between MIH client layer, MIHF and the link layer the concrete unified format of interactive command, like this, can improve the efficient of the ability of upper strata inquiry link layer.
Step 32, link layer are determined the action of its support.
The action that step 33, link layer will be determined is arranged in the action lists.
Step 34, link layer are arranged on the link layer ability with action lists to be confirmed in the order, and confirms order to MIHF return link layer ability.
In order to realize the embodiment of the invention, need expansion link layer ability to confirm order.The function that its link action of supporting the MIHF layer that the media link layer is supported is inquired about.Particularly, confirm to increase in the order one for the action lists shape parameter of the link action that comprises the support of media link layer in the link layer ability.Link layer is when receiving the request of the link action inquiry that the media link layer of MIHF supports, the media link layer can be confirmed the MIHF that order feeds back to the link action of its support by the link layer ability.The link layer ability confirms that command definition is as follows:
Link_Capability_Discover.confirm(
SupportedLinkEventList,
SupportedLinkCommandList,
SupportedLinkActionList
Status
)
Wherein, the definition of parameter is as shown in table 4 in this order primitive.
Table 4
The Name parameter name |
The Type parameter type |
Valid range valid value range |
Discreption describes |
Supported LinkEvent List |
BITMAP (32) |
N/A |
The link event tabulation that link layer is supported |
Supported LinkCommandList |
BITMAP (32) |
N/A |
The link command tabulation that link layer is supported |
Supported Link ActionList |
BITMAP (32) |
N/A |
The link action lists that link layer is supported. |
Status |
ENUMERATED |
N/A |
State information: 0 Success1 Unspecified Failure2 Rejected3 Authorization Failure4 Network Error |
Like this, after MIHF sent link layer capability query request command to link layer, the parameter (SupportedLinkActionList) of expansion was returned the link action that this link layer is supported to MIHF during link layer just can be confirmed to order by the link layer ability.
Embodiment three
As shown in Figure 4, present embodiment is by Link_Action_Discover.request (link layer action inquiry request command) and the Link_Action_Discover.Confirm (order of link layer action acknowledgment of your inquiry) of redetermination, a kind of method that obtains the action that the media link layer supports is provided, has described the method for the action that the acquisition media link layer of present embodiment supports below with reference to Fig. 4.
Step 41, MIHF send link layer action inquiry request command to link layer.
Step 42, link layer are determined the action of its support.
The action that step 43, link layer will be determined is arranged in the action lists.
Step 44, link layer are arranged on the link layer ability with action lists to be confirmed in the order, and to the order of MIHF return link layer action acknowledgment of your inquiry.
In order to realize the embodiment of the invention, need a pair of new order primitive of definition, be used for the MIHF layer to the inquiry of the dissimilar link action of media link layer support.As a pair of order primitive that can be defined as follows: link layer action inquiry request command and the order of link layer action acknowledgment of your inquiry, MIHF utilizes the link layer action inquiry request command of redetermination and the order of link layer action acknowledgment of your inquiry can inquire about the action that link layer is supported, being defined as follows of link layer action inquiry request command and link layer action acknowledgment of your inquiry order:
(1) to the definition of Link_Action_Discover.request:
Link_Action_Discover.request(
)
This order primitive printenv.
(2) definition of Link_Action_Discover.Confirm:
Link_Action_Discover.Confirm(
SupposedLinkActionList,
Status
)
Wherein, the definition of parameter is as shown in table 5 in this order primitive.
Table 5
The Name parameter name |
The Type parameter type |
The Validrange valid value range |
Discreption describes |
SupportedLinkActio nList |
The LIST tabulation |
N/A |
The action lists that link layer is supported. |
Tatus |
ENUMERATED enumerates |
0-4 |
The state of the action inquiry that link layer is supported.0 Success1 Unspecified Failure2 Rejected3 Resource Unavailable4 Resource Busy |
Like this, when MIHF sent link layer action inquiry request command to link layer after, link layer just can move list parameter (SupportedLinkActionList) in the acknowledgment of your inquiry order by link layer and return the link that this link layer supports to MIHF and move.
Embodiment four
As shown in Figure 5, present embodiment is described a kind of device that obtains the action of media link layer support, comprises that media-independent switches client layer entity, independent medium switching functional entity and link layer entity.
Described media-independent switches the client layer entity and is used for obtaining the action that link layer is supported from independent medium switching functional entity.Described media-independent switches the client layer entity and comprises: transmitting element, and be used for sending media-independent to independent medium switching functional entity and switch inquiry request command, described media-independent switches the action lists option that inquiry request command comprises that link layer is supported; Receiving element, be used for the media-independent switching acknowledgment of your inquiry order that the receiving media independent handover (mih) functions sends, described media-independent switches the action lists option that the acknowledgment of your inquiry order comprises that link layer is supported, the action lists option of described link layer support comprises the action that link layer is supported.
Described independent medium switching functional entity is used for sending to link layer entity the request command of inquiry link layer action, and receives the action lists that link layer entity returns; Described link layer entity is used for the request command of the inquiry link layer action of receiving media independent handover (mih) functions transmission, and determines the action of its support, and the action of determining is arranged in the action lists, tabulates to the independent medium switching functional entity return action.
Described independent medium switching functional entity comprises: transmitting element is used for sending the request command that the inquiry link layer moves to link layer entity; Receiving element is used for receiving the action lists that link layer entity returns.
Described link layer entity comprises: receiving element, the request command that the inquiry link layer that sends for the receiving media independent handover (mih) functions moves; Determining unit is used for determining the action of its support; The unit is set, is used for the action that described determining unit is determined is arranged on action lists; Transmitting element is used for tabulating to the independent medium switching functional entity return action.
According to the embodiment of the invention, by in the order primitive of existing order primitive or redetermination, increasing the action lists option that link layer is supported, make MIHF and MIH client layer can obtain the action that link layer is supported, thereby make MIHF and MIH client layer to send the moving request of link to link layer according to the link action of link layer support, action is effectively operated to link, has improved system effectiveness.
Though described the present invention by embodiment, those of ordinary skills know, without departing from the spirit and substance in the present invention, just can make the present invention that many distortion and variation are arranged, and scope of the present invention is limited to the appended claims.