CN103179227B - The method of the Selection of chiller in IPv6 network and switching address configuration mode - Google Patents

The method of the Selection of chiller in IPv6 network and switching address configuration mode Download PDF

Info

Publication number
CN103179227B
CN103179227B CN201310091369.3A CN201310091369A CN103179227B CN 103179227 B CN103179227 B CN 103179227B CN 201310091369 A CN201310091369 A CN 201310091369A CN 103179227 B CN103179227 B CN 103179227B
Authority
CN
China
Prior art keywords
address
configuration
main frame
message
flag bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310091369.3A
Other languages
Chinese (zh)
Other versions
CN103179227A (en
Inventor
王文东
龚向阳
阙喜戎
石旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201310091369.3A priority Critical patent/CN103179227B/en
Publication of CN103179227A publication Critical patent/CN103179227A/en
Application granted granted Critical
Publication of CN103179227B publication Critical patent/CN103179227B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The method of the Selection of chiller in a kind of IPv6 network and switching address configuration mode, first newly-increased specification and mark Selection of chiller and C and two flag bits of S of switching address configuration mode in the RA of ND agreement message, then carry out following operation: router arranges C and two flag bits of S and other fields. Router regularly sends RA message to the main frame on IPv6 link, or router receives after RS request, in IPv6 link, sends RA message. Main frame receives after RA message, resolves C and S flag bit wherein, and is recorded in mode bit. The selection specification of the host address configuration mode that main frame is set according to C and S flag bit, decision-making is used SLAAC mechanism or DHCPv6 protocol configuration IPv6 address; And main frame has made configuration of IP v6 address by some way, also to be switched to the address configuration mode that flag bit is set according to this specification. The present invention can meet main frame and coordinate the demand of two kinds of address configuration mode configuration of IP v6 addresses of use, also can meet the demand that network address controller and network renumber.

Description

The method of the Selection of chiller in IPv6 network and switching address configuration mode
Technical field
The present invention relates to Selection of chiller and the method for switching address configuration mode in a kind of IPv6 network, belong toThe technical field of network service.
Background technology
Be different from the automatic acquisition mode of IPv4 address, the main frame in IPv6 network adopts following two kinds of modes certainlyThe moving IPv6 address that obtains: IPv6 dynamic host configuration protocol DHCP v6 (DynamicHostConfigurationAnd Stateless Address Auto-configuration SLAAC (StatelessAddress ProtocolforIPv6)Auto-configuration). So, in the time that main frame is wished automatic acquisition address, just have two kinds of addresses automatically to joinThe mode of putting is available. So just there is selection and the cooperation problem of above-mentioned two kinds of address configuration modes, main frameMust clearly how to coordinate to configure its IPv6 address by these two kinds of modes: use SLAAC mechanism configuration groundDoes location, still obtain address by DHCPv6 agreement, or both uses? although in the prior art,Router advertisement RA (the Router of Neighbor Discovery Protocol ND (NeighborDiscovery)Advertisements) automatic configuration flag bit A (Autonomousflag) and the Management flag position in messageM (Managedflag) can indicate respectively main frame whether to configure SLAAC address or no use DHCPv6Agreement is obtained IPv6 address, and still, these two flag bits exist open defect.
DHCP agreement is a kind of agreement based on customer end/server mode. DHCP agreement can be to networkEquipment provides address and other network parameter information, and is divided into v4 and two versions of v6. DHCPv6 can lead toCross DHCPv6 server the network configuration parameters including the IPv6 network address is passed to IPv6 node. PhaseFor IPv6 stateless address configuration SLAAC, DHCPv6 has state; Because DHCPv6 server meetingMaintain the details of each client computer. In order to obtain IPv6 address, client computer first to net in allDynamic Host Configuration Protocol server sends request, once obtain the reply of certain Dynamic Host Configuration Protocol server, just to this server applicationDistribution network address and other network configuration informations. Referring to Fig. 1, this figure has shown that main frame assists by DHCPv6View is obtained the above-mentioned course of work of address.
Main frame can also configure SLAAC mechanism automatic acquisition IPv6 address automatically by stateless address.SLAAC is the RA message generation IPv6 address by ND agreement, and RA message is with broadcast mode by routerSend to the main frame in subnet. Be characterized in that main frame does not need manual configuration, router also only needs seldom configuration,And do not need extra server. SLAAC mechanism allows main frame by the information of himself information and router advertisementCarry out combination and produce global address, then after this global address is verified by uniqueness, just can use.Namely, SLAAC completes the automatic configuration of host address by following two steps:
Step 1: adopt stateless auto-configuration process to produce global address.
Step 2: carry out collision detection process on same link, to determine the uniqueness of this address.
Referring to Fig. 2, introduce the concrete production process of global address: router passes through RA message to mark subnetPrefix announce, main frame is received RA message, obtains the prefix of place subnet, main frame also can by be situated betweenMatter MAC layer MAC (MediumAccessControl) identifier and EUI-64 specification generate one voluntarilyIndividual unique interface identifier, then both combinations just can be generated to a global address. In addition, in definitionIn the standard of SLAAC mechanism, the life cycle that IPv6 address should be followed is also described. Be tied to each interfaceIPv6 address have corresponding life span, when life span is to after date, bind address will lose efficacy, soAfter, this address is just assigned to other interfaces in network.
For the failure procedure of process IP v6 address better, the IPv6 address of distributing to network interface will experienceTwo different phases, the introducing of IPv6 life cycle can keep the continuity of network service better.
Referring to Fig. 3, introduce two stages of IPv6 address experience in IPv6 life cycle:
(1) Preferred period: at first, address be " preferential " (preferred), it is in officeUse in what session is all unrestricted. New session (as opening new TCP connection) should be used as much as possiblePriority address.
(2) Deprecated period: after setting-up time, IPv6 address will become " expired "(deprecated), represent that this address is about to lose efficacy. When address is during in the expired stage, just do not advocate to useIt, but also can strictly not forbid. Only have some old session connections in order to prevent service disruption problem,Just can continue to continue to use this " expired " Deprecated address.
Introduce now prior art related to the present invention:
Two fields of M flag bit in prefix information option in RA message and A flag bit have affected respectivelyWhether main frame uses DHCPv6 agreement to obtain address, and whether uses SLAAC mechanism configuration address.
Standard [RFC2642] has defined SLAAC mechanism, also in RA message format, has defined respectively and has accounted for simultaneouslyTwo flag bits of the M in 1bit space and A (referring to Fig. 4 (A)).
The purposes of the M flag bit (ManagedFlag) in the RA message of receiving recently from main frame is markWhether the main frame of receiving this RA message uses DHCPv6 protocol configuration IPv6 address. The RA receiving when main frame disappearsIn breath, M flag bit is when 0 becomes 1 (false becomes true), if main frame does not use DHCPv6 protocol configurationAddress, initiates DHCPv6 session; If M flag bit becomes at 0 o'clock from 1, main frame is without any operation. And shouldM flag bit is defaulted as 0. It is pointed out that prior art M flag bit field is not enforceable standard,Do not require main frame to carry out, but to main frame suggestion.
In the time of configuration SLAAC address, RA message carries prefix information in option, and A flag bit is exactlyA flag bit (accounting for 1bit) in this prefix information option, its purposes is whether this prefix information of mark shouldBe used for SLAAC mechanism: if this A flag bit is set to false, main frame will be ignored this option; IfA mark place value is true, and main frame will use this prefix information configuration of IP v6 address.
The M flag bit and the A flag bit that arrange, can meet to a certain extent Selection of chiller and pass through SLAACMechanism or DHCPv6 agreement are obtained the demand of IPv6 address. Referring to Fig. 5, there are two kinds of address configuration modesSimple subnet be example, introduce network manager and how RA message carried out to following configuration and select host addressConfiguration mode:
(1) only want to obtain IPv6 address by SLAAC mechanism when the main frame in subnet, RA message is just setIn flag bit: M=0 and A=1.
(2) only want to obtain IPv6 address by DHCPv6 agreement when the main frame in subnet, RA message is just setIn flag bit: M=1 and A=0, or RA message is set does not carry prefix information option.
(3) when the main frame in subnet wishes to obtain IPv6 address by SLAAC mechanism and DHCPv6 agreement,Correlating markings position in RA message is just set: M=1 and A=1.
Although prior art can meet the regulatory requirement of host address configuration mode in some scene, depositIn following defect:
(A) effect of M flag bit is too simple, can not meet the collaborative demand of SLAAC and DHCPv6.The basic demand of SLAAC and DHCPv6 coordination mechanism is: must meet main frame and coordinate to use two kinds of addresses to joinPut mode, and ensure main frame proper communication. Because when two kinds of address configuration modes are used simultaneously, main frame mayUse separately SLAAC mechanism configuration address or use separately DHCPv6 protocol configuration address, also may be simultaneouslyUse this two kinds of address configuration modes. Although the subnet shown in Fig. 5 can meet this demand,, if this sonWhile there is two routers and two kinds of RA message in net, IPv6 address configuration result can not with regard to becoming confusionPrediction, also just can not meet the demand of host configuration address.
(B), in the time that host address configuration result is unpredictable, network-side also just can not be carried out by main control systemSLAAC is to DHCPv6 conversion and other associative operations.
(C) because M flag bit only plays suggestiveness effect to operating system. Therefore operating system is in the time realizing,Main frame can be followed the function that M flag bit is described, and also can ignore it, even can change the former of M fieldMeaning. With regard to causing the main frame of different operating system platform to produce different situations, make in identical network like thisDifferent main frames may produce different address configuration results, thereby affect the management of network.
(D) prior art can not meet the demand that network renumbers: except can not realize from SLAAC toThe demand of DHCPv6 conversion, can not meet following demand: when main frame renumbers, following IPv6When life cycle, wish to abandon as early as possible old prefix, be with the IPv6 address of the prefix of haveing been friends in the past to cover as early as possible itLife cycle, and M flag bit and A flag bit all can not provide this function.
(E) definition of host address behavior is few, for example, and when not describing main frame and can not receive RA message, itsBe configuration address how, whether need to initiate DHCPv6 session.
Summary of the invention
In view of this, the object of the invention is the defect for prior art scheme, a kind of main control system is providedThe method of selecting and switching in two kinds of address configuration modes of SLAAC/DHCPv6, is used for meetingNetwork-side manages to host configuration IPv6 address the needs that renumber with network, meets main frame on two kinds of groundLocation configuration mode coexists and obtains as required the requirement of IPv6 address under scene, simultaneously at host address configuration modeIn selection course, provide a kind of specification, have something to base on while making Selection of chiller address configuration mode.
In order to achieve the above object, the invention provides the Selection of chiller in a kind of IPv6 network and switch addressThe method of configuration mode, is characterized in that: the method is: first at Neighbor Discovery (NeighborDiscovery) newly-increased two use in the router advertisement RA of agreement (RouterAdvertisements) messageFlag bit in specification with mark Selection of chiller and switching address configuration mode: C flag bit (ControlFlag)," address configuration control command " field and S flag bit (SingleFlag), " sole disposition mode is orderedMake " field; Wherein:
S flag bit represents that main frame only uses a kind of address configuration mode, uses separately stateless address automaticConfiguration mechanism SLAAC (StatelessAddressAuto-configuration), or use separately IPv6Dynamic host configuration protocol DHCP v6 (DynamicHostConfigurationProtocolforIPv6);
C flag bit represents that this RA message has control to the address configuration operation of main frame, and namely main frame is necessaryStrictly follow correlating markings position, i.e. definition and the instruction of M, A, C and each flag bit of S;
Then carry out following operating procedure:
(1) router other fields to the newly-increased C flag bit of RA message and S flag bit and RA messageBe configured;
(2) router regularly sends RA message to the main frame on IPv6 link, or router receives roadAfter device request RS (RouterSolicitation), in IPv6 link, send RA message;
(3) main frame receives after RA message, the C in RA message and S flag bit are resolved, andBe recorded in mode bit;
(4) the selection specification of the host address configuration mode that main frame is set according to C and S flag bit, decision-makingUse SLAAC mechanism or its IPv6 address of DHCPv6 protocol configuration; Even and if main frame has used certainMode configuration of IP v6 address, the host address configuration mode that also will set according to described C and S flag bitSelect specification, be switched to the address configuration mode of being set by M and A flag bit; In this step, main frame is pressedComprise following different situations according to the C after resolving and the operation of S flag bit executive address configuration mode:
If (4A) C=0, when S=0, main frame is followed the suggestiveness of standard [RFC2462] about M flag bitDescribe and the description of standard [RFC4862] to A flag bit: work as C=0, when S=0, newly-increased flag bit is notPlay a role, therefore follow the original definition of M and A flag bit;
If (4B) C=0, when S=1, does not possess the control of address configuration because C=0 represents this RA message,And S=1 instruction main frame should use a kind of address configuration mode to carry out address configuration;
If M=1, expression main frame is only used DHCPv6 protocol configuration address, and main frame should be initiated DHCPv6Session or maintain DHCPv6 address, and without the prefix configuration SLAAC address in this RA message;
If M=0 and A=1, represent that main frame only uses SLAAC mechanism configuration address, use this RA messagePrefix configuration SLAAC address, and when after DHCPv6 address aging, do not renew a contract with DHCPv6 server;
If (4C) when C=1, main frame is followed following specification configuration address: each mark of C, M, S and AThe enough main control systems of potential energy adopt respectively DHCPv6, SLAAC and DHCPv6 and SLAAC configuration groundLocation, and realize the switching of different addresses configuration mode, meet the demand that host address configuration and network renumber.
Two flag bit fields of described C and S respectively account for 1bit space, and order is arranged in RA message existingM and the reserved field on two field right sides of O in, and respectively corresponding " address configuration control command " and" order of sole disposition mode ".
Described step (4C) comprises following different address configuration mode:
If (4C1) M=0, when S=0, does not define or specification this RA to the address configuration behavior of main frameMessage is just for carrying the announcement message of network prefix;
If (4C2) M=1, S=0, when A=1, main frame must use two kinds of address configuration mode configuration of IP v6Address, main frame uses RA message arrangement SLAAC address, initiates DHCPv6 session or continuation simultaneouslyMaintain DHCPv6 address;
If (4C3) M=0, S=1, when A=1, main frame is only used SLAAC mechanism configuration address; If nowMain frame is configuration DHCP v6 address, and life span that should DHCPv6 address life cycle is set toLittle duration, so that DHCPv6 address is expired as early as possible; Meanwhile, main frame is ignored other RA of flag bit C=0The DHCPv6 configuration that message is carried out main frame;
If (4C4) M=1, when S=1, main frame is only used DHCPv6 protocol configuration address; If now main frameConfigured SLAAC address, life span that should SLAAC address life cycle is set to minimum duration,So that SLAAC address is expired as early as possible; Meanwhile, other RA message that main frame is ignored flag bit C=0 are to masterThe SLAAC configuration that machine carries out.
Described step (4C3) and (4C4) in the minimum duration of address life cycle be set to 2 hours,If the life span of this address is greater than 2 hours, now the life span of this address is revised as 2 hours;If the life span of this address is not more than 2 hours, do not make an amendment.
The basis of described method is the RA message based on being sent by router in ND agreement, if main frame obtainsWhile getting address, do not receive RA message, now main frame should be initiated DHCPv6 session, attempts to useDHCPv6 protocol configuration address, to ensure that main frame as far as possible successfully obtains address.
The innovative technology of the method for IPv6 Selection of chiller of the present invention and switching address configuration mode is: first to NDThe RA message of agreement is expanded, and increases new command field, to define Selection of chiller and to switch addressThe specification of configuration mode, makes the main frame can be according to the instruction of router RA message, determines to select which kind of addressAuto configuration mode obtains IPv6 address, thereby has realized the control of network-side to host address configuration.
Advantage of the present invention and effect are: a kind of new SLAAC and DHCPv6 coordination mechanism are proposed, and canThe demand of coordinating to use two kinds of address configuration mode configuration of IP v6 addresses to meet main frame, makes the behavior of main frameSpecification is clear and definite, clear, no longer includes fuzzy definition and operation.
The present invention increases new flag bit on standard RA message format basis, does not affect original markPosition. Although the present invention has defined new flag bit to RA message format, if the mark of this new definitionPosition does not arrange, without the slightest difference with the original definition of RA message, therefore there is good compatibility.
In the network that the present invention can coexist two kinds of address configuration modes, do bright to host address configuration behaviorDetermine justice, make the behavior of host configuration address mode there is clear and definite operation standard, both can meet networkThe demand that address administration and network renumber, also makes network manager to control by correlating markings position is setIn network processed, the address configuration mode of main frame, more can realize the switching of SLAAC and DHCPv6 address, andShorten the address life span not re-using, be conducive to the carrying out renumbering. Moreover the inventive method is being enteredWhen the switching of row SLAAC and DHCPv6, follow the life cycle of IPv6 address, can maintain better netRuton letter. Therefore, the present invention has good popularizing application prospect.
Brief description of the drawings
Fig. 1 is the flow chart of DHCPv6 agreement distribution network address.
Fig. 2 is the generative process schematic diagram of global I Pv6 address in SLAAC mechanism.
Fig. 3 is IPv6 address life cycle schematic diagram.
Fig. 4 (A), (B) are respectively the new RA message of RA message format schematic diagram and the present invention's definitionForm schematic diagram.
Fig. 5 is the topological diagram that has the simple subnet of two kinds of address configuration modes.
Fig. 6 is IPv6 Selection of chiller of the present invention and the method operating procedure flow chart that switches address configuration mode.
Fig. 7 is the schematic diagram of host address configuration behavioural norm (when C=1) in the embodiment of the present invention.
Fig. 8 is the network topological diagram of the typical scene of the embodiment of the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is doneFurther describe in detail.
Referring to Fig. 6, introduce Selection of chiller and the method for switching address configuration mode in IPv6 network of the present invention:
First in the router advertisement RA of Neighbor Discovery agreement message, increase two newly for specification and markSelection of chiller and switch the flag bit of address configuration mode: C flag bit (ControlFlag), " join addressPut control command " field and S flag bit (SingleFlag), i.e. " order of sole disposition mode " field;Wherein:
S flag bit represents that main frame only uses a kind of address configuration mode, uses separately stateless address automaticConfiguration mechanism SLAAC, or use separately IPv6 dynamic host configuration protocol DHCP v6;
C flag bit represents that this RA message has control to the address configuration operation of main frame, and namely main frame is necessaryStrictly follow correlating markings position, i.e. definition and the instruction of M, A, C and each flag bit of S;
Then carry out following operating procedure:
Step 1, router is to other of the newly-increased C flag bit of RA message and S flag bit and RA messageField is configured;
Step 2, router regularly sends RA message to the main frame on IPv6 link, or router receivesAfter RS request, in IPv6 link, send RA message;
Step 3, main frame receives after RA message, the C in RA message and S flag bit resolved,And be recorded in mode bit;
Step 4, the selection specification of the host address configuration mode that main frame is set according to C and S flag bit, certainlyPlan is used SLAAC mechanism or its IPv6 address of DHCPv6 protocol configuration; Even and if main frame has used certainPlant mode configuration of IP v6 address, also will be switched to the address configuration mode that this flag bit is set according to this specification.
In order to verify validity and the advantage of the inventive method, applicant based on Quagga Routing Software andLinux platform has done the test of emulation embodiment, and in typical network environment, tests after realizing.
The operating process of the inventive method embodiment is: amendment Quagga source code, increases C and S mark are setWill position, to realize the router feature in the present invention; Amendment linux kernel source code, make linux system byAccording to specification configuration of IP v6 of the present invention address, thereby realize the host function in the present invention.
The emulation that the inventive method is carried out is implemented, and also build typical network environment and carried out experimental test,Referring to Fig. 8, introduce the topological structure of experimental network environment: single subnet environment, this network exists twoRouter RouterA and RouterB, and DHCPv6 server and a host A. Wherein RouterA and host A are realized respectively the function of router of the present invention and main frame, and two routers all can be sent out to subnetSend RA message. By RA message, RouterA announces its prefix 2001:1111: to subnet :/64; RouterB announces its prefix 2001:2222: to subnet :/64. DHCPv6 server can be to the host assignment in subnetPrefix is 2001:3333: :/64 address. Therefore the main frame in this subnet can by SLAAC mechanism respectively fromIt is 2001:1111: that RouterA and B obtain prefix :/64 and 2001:2222: :/64 IPv6 address, also can makeObtaining prefix by DHCPv6 agreement from DHCPv6 server is 2001:1111: :/64 IPv6 address.
Flag bit in RouterA is arranged, and whether checking RouterA can pass through the control of RA messageMain frame processed completes following operation, if can complete, the inventive method is described, and effectively main control system is completeBecome selection and the switching of address configuration mode.
(1) main frame only utilizes DHCPv6 agreement to obtain IPv6 address;
(2) main frame is only used SLAAC mechanism configuration of IP v6 address;
(3) host computer using DHCPv6 agreement and SLAAC mechanism configuration of IP v6 address;
(4) main frame completes from using DHCPv6 agreement to the switching that uses SLAAC mechanism;
(5) main frame completes from using SLAAC mechanism to the switching that uses DHCPv6 agreement.
In test process, use the inventive method that new flag bit C, S and original mark of RA message are setPosition M, A, can obtain the configuration mode of IPv6 address by main control system according to aforesaid operations. The test of embodimentIn process, the detailed process that realizes above-mentioned various operations is described below respectively:
(1) main frame only utilizes DHCPv6 agreement to obtain IPv6 address and (only uses prefix 2001:3333: :/64);
RA message in RouterA is first set, makes tri-flag bits of its C, S and M all put 1, thenHost A is reached the standard grade, and test result is: host A has been initiated DHCPv6 session, and takes by DHCPv6Business device obtains IPv6 address. Test result shows: main frame only uses DHCPv6 agreement to obtain IPv6 address,Realize test oracle.
(2) main frame only uses SLAAC mechanism configuration of IP v6 address (to use prefix 2001:1111: :/64 Hes2001:2222::/64);
RA message in RouterA is first set, makes tri-mark positions 1 of its C, S and A, M markPosition 0, then host A is reached the standard grade. Test result is: host A is received after this RA message, before having configuredSew for 2001:1111: :/64 SLAAC address, main frame is received after the RA message from RouterB, alsoHaving configured prefix is 2001:2222: :/64 SLAAC address, test result shows: main frame can only pass throughSLAAC mechanism configuration of IP v6 address, has realized test oracle.
(3) main control system is by DHCPv6 agreement and SLAAC mechanism configuration of IP v6 address;
RA message in RouterA is first set, makes tri-mark positions 1 of its C, M and A, S markPosition 0, then host A is reached the standard grade. Test result is: host A is received after this RA message, before having configuredSew for 2001:1111: :/64 SLAAC address, initiated DHCPv6 session simultaneously, pass through DHCPv6It is 2001:3333: that server has obtained prefix :/64 IPv6 address. In addition, main frame is received from RouterBRA message after, also having configured prefix is 2001:2222: :/64 SLAAC address, test result shows:Main frame respectively by SLAAC mechanism and DHCPv6 protocol configuration IPv6 address, realized test oracle.
(4) main control system completes from using DHCPv6 agreement to the switching that uses SLAAC mechanism;
RA message in RouterA is first set, makes tri-mark positions 1 of its C, S and M, control mainMachine configuration DHCP v6 address. Main frame gets behind stable DHCPv6 address, resets RA message,Make tri-mark positions 1 of its C, S and A, M mark position 0, then, check main frame whether completed fromUse DHCPv6 agreement to the switching that uses SLAAC mechanism. Test result is: main frame is received again and joinedAfter the RA message of putting, complete the configuration of SLAAC address, and originally used DHCPv6 protocol configurationAddress does not renew use yet, and approximately, after 2 hours, this address ceases to be in force automatically. Test result shows: main frame completesFrom using DHCPv6 agreement to the switching that uses SLAAC mechanism, realized test oracle.
(5) main control system completes from using SLAAC mechanism to the switching that uses DHCPv6 agreement;
RA message in RouterA is first set, makes tri-mark positions 1 of its C, S and A, M markPosition 0, main control system is by SLAAC mechanism configuration address. Main frame gets stable SLAAC addressAfter, reset RA message, make tri-mark positions 1 of its C, S and M, then, check that main frame isNo having completed from using DHCPv6 agreement to the switching that uses SLAAC mechanism. Test result is: main frameReceive after the RA message reconfiguring, initiated DHCPv6 session, and by DHCPv6 protocol configurationIPv6 address, and, originally used the address of SLAAC mechanism configuration also not renew use; Approximately 2 littleShi Hou, this address ceases to be in force automatically. Test result shows: main frame has completed from using SLAAC mechanism to makingWith the switching of DHCPv6 agreement, realize test oracle.
In a word, the emulation embodiment test of the inventive method is successfully, has realized goal of the invention, networkKeeper can be in network-side the selection to host address configuration mode and switching control.
The foregoing is only the Realization of Simulation of the present invention, in order to limit the present invention, not all at thisWithin bright spirit and principle, any amendment of making, be equal to replacement, improvement etc., all should be included in thisWithin the scope of invention protection.

Claims (5)

1. a method for the Selection of chiller in IPv6 network and switching address configuration mode, is characterized in that:The method is: first in the router advertisement RA of Neighbor Discovery agreement message, increase two newly for ruleModel and mark Selection of chiller and switch the flag bit of address configuration mode: C flag bit (ControlFlag)," address configuration control command " field and S flag bit (SingleFlag), i.e. " order of sole disposition mode "Field; Wherein:
S flag bit represents that main frame only uses a kind of address configuration mode, uses separately stateless address automaticConfiguration mechanism SLAAC, or use separately IPv6 dynamic host configuration protocol DHCP v6;
C flag bit represents that this RA message has control to the address configuration operation of main frame, and namely main frame is necessaryStrictly follow correlating markings position, i.e. definition and the instruction of M, A, C and each flag bit of S;
Then carry out following operating procedure:
(1) router other fields to the newly-increased C flag bit of RA message and S flag bit and RA messageBe configured;
(2) router regularly sends RA message to the main frame on IPv6 link, or router receives roadAfter device request RS (RouterSolicitation), in IPv6 link, send RA message;
(3) main frame receives after RA message, the C in RA message and S flag bit are resolved, andBe recorded in mode bit;
(4) the selection specification of the host address configuration mode that main frame is set according to C and S flag bit, decision-makingUse SLAAC mechanism or its IPv6 address of DHCPv6 protocol configuration; Even and if main frame has used certainMode configuration of IP v6 address, the host address configuration mode that also will set according to described C and S flag bitSelect specification, be switched to the address configuration mode of being set by M and A flag bit; In this step, main frame is pressedComprise following different situations according to the C after resolving and the operation of S flag bit executive address configuration mode:
If (4A) C=0, when S=0, main frame is followed the suggestiveness of standard [RFC2462] about M flag bitDescribe and the description of standard [RFC4862] to A flag bit: work as C=0, when S=0, newly-increased flag bit is notPlay a role, therefore follow the original definition of M and A flag bit;
If (4B) C=0, when S=1, does not possess the control of address configuration because C=0 represents this RA message,And S=1 instruction main frame should use a kind of address configuration mode to carry out address configuration;
If M=1, expression main frame is only used DHCPv6 protocol configuration address, and main frame should be initiated DHCPv6Session or maintain DHCPv6 address, and without the prefix configuration SLAAC address in this RA message;
If M=0 and A=1, represent that main frame only uses SLAAC mechanism configuration address, use this RA messagePrefix configuration SLAAC address, and when after DHCPv6 address aging, do not renew a contract with DHCPv6 server;
If (4C) when C=1, main frame is followed following specification configuration address: each mark of C, M, S and AThe enough main control systems of potential energy adopt respectively DHCPv6, SLAAC and DHCPv6 and SLAAC configuration groundLocation, and realize the switching of different addresses configuration mode, meet the demand that host address configuration and network renumber.
2. method according to claim 1, is characterized in that: two flag bit words of described C and SSection respectively accounts for 1bit space, and order is arranged at the reservation of existing M and two field right sides of O in RA messageIn field, and respectively corresponding " address configuration control command " and " order of sole disposition mode ".
3. method according to claim 1, is characterized in that: under described step (4C) comprisesState different address configuration modes:
If (4C1) M=0, when S=0, does not define or specification this RA to the address configuration behavior of main frameMessage is just for carrying the announcement message of network prefix;
If (4C2) M=1, S=0, when A=1, main frame must use two kinds of address configuration mode configuration of IP v6Address, main frame uses RA message arrangement SLAAC address, initiates DHCPv6 session or continuation simultaneouslyMaintain DHCPv6 address;
If (4C3) M=0, S=1, when A=1, main frame is only used SLAAC mechanism configuration address; If nowMain frame is configuration DHCP v6 address, and life span that should DHCPv6 address life cycle is set toLittle duration, so that DHCPv6 address is expired as early as possible; Meanwhile, main frame is ignored other RA of flag bit C=0The DHCPv6 configuration that message is carried out main frame;
If (4C4) M=1, when S=1, main frame is only used DHCPv6 protocol configuration address; If now main frameConfigured SLAAC address, life span that should SLAAC address life cycle is set to minimum duration,So that SLAAC address is expired as early as possible; Meanwhile, other RA message that main frame is ignored flag bit C=0 are to masterThe SLAAC configuration that machine carries out.
4. method according to claim 3, is characterized in that: described step (4C3) and (4C4)In the minimum duration of address life cycle be set to 2 hours, if the life span of this address is greater than 2 hours,Now the life span of this address is revised as 2 hours; If it is 2 little that the life span of this address is not more thanTime, do not make an amendment.
5. method according to claim 1, is characterized in that: the basis of described method is based on NDThe RA message being sent by router in agreement, if do not receive RA message when main frame obtains address,Now main frame should be initiated DHCPv6 session, attempts to use DHCPv6 protocol configuration address, main to ensureMachine as far as possible successfully obtains address.
CN201310091369.3A 2013-03-21 2013-03-21 The method of the Selection of chiller in IPv6 network and switching address configuration mode Expired - Fee Related CN103179227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310091369.3A CN103179227B (en) 2013-03-21 2013-03-21 The method of the Selection of chiller in IPv6 network and switching address configuration mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310091369.3A CN103179227B (en) 2013-03-21 2013-03-21 The method of the Selection of chiller in IPv6 network and switching address configuration mode

Publications (2)

Publication Number Publication Date
CN103179227A CN103179227A (en) 2013-06-26
CN103179227B true CN103179227B (en) 2016-05-11

Family

ID=48638845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310091369.3A Expired - Fee Related CN103179227B (en) 2013-03-21 2013-03-21 The method of the Selection of chiller in IPv6 network and switching address configuration mode

Country Status (1)

Country Link
CN (1) CN103179227B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935677B (en) * 2014-03-18 2019-10-18 中兴通讯股份有限公司 A kind of NAT64 resource acquiring method and acquisition/distributor
CN105282026A (en) * 2014-06-23 2016-01-27 国基电子(上海)有限公司 Default gateway selecting system and method
EP2975827A1 (en) * 2014-07-17 2016-01-20 Siemens Aktiengesellschaft Method for configuring communication devices of an industrial communication network and communication device
CN111416881B (en) * 2019-01-08 2022-07-29 中国移动通信有限公司研究院 Method and device for acquiring domain name system configuration information and storage medium
CN109921898A (en) 2019-03-28 2019-06-21 新华三技术有限公司 IPv6 stateless address generation method and device
TWI717739B (en) * 2019-05-22 2021-02-01 中華電信股份有限公司 System and method for provisioning both ipv4 and ipv6 internet service and load balancer service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271050A (en) * 2010-06-04 2011-12-07 华为技术有限公司 Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
CN102710806A (en) * 2012-05-18 2012-10-03 中兴通讯股份有限公司 Method, equipment and system for automatically selecting IPv6 (internet protocol version 6) address transmission mode
CN102843441A (en) * 2011-06-24 2012-12-26 华为技术有限公司 Method and device for controlling address configuration way

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100499674C (en) * 2006-01-06 2009-06-10 华为技术有限公司 Method for distributing terminal device IP address under router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271050A (en) * 2010-06-04 2011-12-07 华为技术有限公司 Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
CN102843441A (en) * 2011-06-24 2012-12-26 华为技术有限公司 Method and device for controlling address configuration way
CN102710806A (en) * 2012-05-18 2012-10-03 中兴通讯股份有限公司 Method, equipment and system for automatically selecting IPv6 (internet protocol version 6) address transmission mode

Also Published As

Publication number Publication date
CN103179227A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN103179227B (en) The method of the Selection of chiller in IPv6 network and switching address configuration mode
EP3409000B1 (en) Methods and apparatus for configuring an m2m device
US20160241511A1 (en) Communication Device of an Industrial Automation System and Method for Configurating the Communication Device
CN100493102C (en) Method for distribution of IP address in wideband wireless city area network
US9455866B2 (en) Auto-configuration of network devices
CA2666486A1 (en) Network device location and configuration
CN102447746B (en) Information supply method, family gateway and family network system
CN101753460A (en) Method and device for processing internet protocol version 6(IPV6) routing prefix
CN101883158A (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN106878480B (en) DHCP service process sharing method and device
CN104378455A (en) IP address distribution method and device
CN101984636A (en) Prefix distribution method, device and system
CN104580029A (en) Address distribution method and device
CN102355510A (en) Medium/media access control (MAC) address allocation method, device and system
US20120269092A1 (en) Auto-configuration of network devices
US20120008627A1 (en) Method and apparatus for assigning device identifier with collision avoidance
CN103051739A (en) Network terminal and IP (Internet Protocol) address configuration method thereof
CN104753743A (en) Automatic testing method based on automatic testing tool router function
CN104104749A (en) Method and device for allocating tunnel IP addresses
US10050932B2 (en) Method, user node and remote access server for releasing address
CN109803028A (en) method and device for configuring service flow
US20170222970A1 (en) Ipv6 address assignment method and apparatus
CN102333133A (en) Medium access control (MAC) address distribution method, device and system
CN103108056A (en) Device and method capable of achieving subscriber identifier and locator separation network
KR20170014853A (en) Method for processing traffic based on sdn

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160511

Termination date: 20170321

CF01 Termination of patent right due to non-payment of annual fee