CN107592261A - Message processing method, device and router - Google Patents

Message processing method, device and router Download PDF

Info

Publication number
CN107592261A
CN107592261A CN201610541210.0A CN201610541210A CN107592261A CN 107592261 A CN107592261 A CN 107592261A CN 201610541210 A CN201610541210 A CN 201610541210A CN 107592261 A CN107592261 A CN 107592261A
Authority
CN
China
Prior art keywords
user
router
standby
request message
information
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.)
Pending
Application number
CN201610541210.0A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610541210.0A priority Critical patent/CN107592261A/en
Priority to PCT/CN2017/087578 priority patent/WO2018006684A1/en
Publication of CN107592261A publication Critical patent/CN107592261A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a kind of message processing method, device and router, wherein, this method includes:Active router receives the request message from user, wherein, the request message needs to be replied;The active router replys message according to the request message to the user;The information of the user is informed to standby router, wherein, the information of the user is used to notify the standby router not reply the request message from the user, and the active router and the standby router are main and standby relation.By the present invention, solve the address that user obtains in the networking of two-shipper cold standby in correlation technique and carry probabilistic problem, and then improve the effect of acquisition router address validity.

Description

Message processing method, device and router
Technical field
The present invention relates to the communications field, in particular to a kind of message processing method, device and router.
Background technology
With the rapid development of Internet, current (the Internet Protocol version of internet protocol version 4 4, referred to as IPv4) address space that defines of address protocol facing the danger that will be exhausted.Internet protocol version 6 The appearance of (Internet Protocol version 6, referred to as IPv6), greatly increases address space, can Solve the problems, such as that IPv4 address spaces will exhaust well.
As the cold standby technology commonly used in IPv4 broadband access, problem is encountered in IPv6 use.For example, IPv6 Neighbor Discovery Protocol (Neighbor Discovery Protocol, referred to as NDP) agreement to obtain address and gateway more Flexibly, in two-shipper cold standby networking, address and gateway that user obtains all carry uncertainty.
When IPv6 user's stateless obtains address in two-shipper cold standby networking, when user sends Multicast Routing notice (Router Solicit, referred to as RS) after message, no matter made for router and how long postpone to reply unicast route announcement (Router Advertise, referred to as RA) message, it actually can not all prevent user from finding standby router as gateway, and then get standby The prefix addresses and gateway of router, if user obtains multiple gateways, user then generates a plurality of same type same priority Default route.From this, in current IPoEv6 cold standby networkings, i.e., it can not ensure that user reaches the standard grade from active router, and may Guide user uplink flow into standby router.
DHCP version 6 (Dynamic Host Configuration Protocol v6, referred to as DHCPv6) during stateful acquisition address, although by controlling standby router delay DHCPv6 protocol massages user can be allowed to obtain The address of active router, but DHCPv6 it is stateful obtain address before user actively send RS messages when, still can occur The problem of as when obtaining address with stateless:I.e. user is found that standby router as gateway.
Therefore, the address that user obtains in the networking of two-shipper cold standby in correlation technique carries probabilistic problem.
The content of the invention
The embodiments of the invention provide a kind of message processing method, device and router, at least to solve in correlation technique The address that user obtains in two-shipper cold standby networking carries probabilistic problem.
According to one embodiment of present invention, there is provided a kind of message processing method, including:Active router, which receives, to be come from The request message of user, wherein, the request message needs to be replied;The active router is according to the request message to institute State user and reply message;The information of the user is informed to standby router, wherein, the information of the user is described standby for notifying Router is not replied the request message from the user, and the active router and the standby router are active and standby Relation.
Alternatively, the active router informs that the information of the user includes to the standby router:The active router The information of the user is informed to the standby router in scheduled duration, wherein, the scheduled duration is the standby router The duration of the request message is replied in delay.
Alternatively, the scheduled duration is more than the time that the active router replys the message to the user.
Alternatively, the request message includes at least one of:Route requests RS messages, DHCPv6 messages;And/or The message replied includes at least one of:Advertising of route RA messages, DHCPv6 messages.
According to another embodiment of the invention, there is provided a kind of message processing method, including:Standby router receives use The request message at family, wherein, the request message needs to be replied;The standby router judges whether to receive from active router To the information of the user, wherein, the active router and the standby router are main and standby relation;The standby router is judging As a result in the case of being the information for receiving the user, the request message of the user is not replied.
Alternatively, the information that the standby router judges whether to receive the user from active router includes:It is described standby Router judges whether to receive the user from active router according to the information for whether receiving the user in scheduled duration Information.
Alternatively, methods described also includes:The standby router does not receive the letter of the user in the scheduled duration In the case of breath, the request message of the user is replied.
Alternatively, the scheduled duration is more than the time that the active router replys the message to the user.
Alternatively, the request message includes at least one of:Route requests RS messages, DHCPv6 messages;And/or The message replied includes at least one of:Advertising of route RA messages, DHCPv6 messages.
According to still another embodiment of the invention, there is provided a kind of message process device, including:First receiving module, use In receiving the request message from user, wherein, the request message needs to be replied;First replys module, for root According to the request message message is replied to the user;Module is informed, for informing the information of the user to standby router, its In, inform that the information of the user is used to notify the standby router not return the request message from the user Multiple, active router and the standby router are main and standby relation.
Alternatively, it is described to inform that module includes:Informing unit, for informing institute to the standby router in scheduled duration The information of user is stated, wherein, the scheduled duration replys the duration of the request message for the standby router delay.
According to still another embodiment of the invention, there is provided router, the router include the dress described in any of the above-described Put.
According to still another embodiment of the invention, there is provided a kind of message process device, including:Second receiving module, use In receiving the request message from user, wherein, the request message needs to be replied;Judge module, it is for judgement The no information that the user is received from active router, wherein, the active router and standby router are main and standby relation;Second time Multiple module, for the standby router in the case where receiving the information of the user, not to the request of the user Message is replied.
Alternatively, the judge module includes:Judging unit, the user whether is received in scheduled duration for basis Information, judge whether to receive the information of the user from active router.
Alternatively, described device also includes:3rd replys module, for not receiving the user in the scheduled duration Information in the case of, the request message of the user is replied.
According to another embodiment of the invention, there is provided a kind of router, the router are included described in foregoing any one Device.
According to still another embodiment of the invention, there is provided a kind of storage medium.The storage medium is arranged to storage and is used for Perform the program code of following steps:Active router receives the request message from user, wherein, the request message needs Replied;The active router replys message according to the request message to the user;The use is informed to standby router The information at family, wherein, the information of the user is used to notify the standby router not to the request report from the user Text is replied, and the active router and the standby router are main and standby relation.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The active router to The standby router informs that the information of the user includes:The active router is informed in scheduled duration to the standby router The information of the user, wherein, the scheduled duration replys the duration of the request message for the standby router delay.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The scheduled duration is big The time of the message is replied to the user in the active router.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The request message bag Include at least one of:Route requests RS messages, DHCPv6 messages;And/or the message of reply include it is following at least it One:Advertising of route RA messages, DHCPv6 messages.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used In the program code for performing following steps:Standby router receives the request message of user, wherein, the request message need into Row is replied;The standby router judges whether to receive the information of the user from active router, wherein, the active router and The standby router is main and standby relation;The standby router in the case where judged result is to receive the information of the user, The request message of the user is not replied.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The standby router is sentenced The disconnected information that the user whether is received from active router includes:Whether the standby router receives according in scheduled duration The information of the user, judge whether to receive the information of the user from active router.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The standby router exists In the case of the information for not receiving the user in the scheduled duration, the request message of the user is replied.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The scheduled duration is big The time of the message is replied to the user in the active router.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The request message bag Include at least one of:Route requests RS messages, DHCPv6 messages;And/or the message of reply include it is following at least it One:Advertising of route RA messages, DHCPv6 messages.
By the present invention, due to active router according to the request message being used for user's reply message, and standby route is notified Device is not replied the request message from the user, and the address that user obtains is the address of active router, therefore, can be with Solve the address that user obtains in two-shipper cold standby networking in correlation technique and carry probabilistic problem, it is more to avoid user's discovery The situation of individual router address, reach the effect for improving and obtaining router address validity.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the hardware block diagram of the router of the message processing method of the embodiment of the present invention;
Fig. 2 is the flow chart one of message processing method according to embodiments of the present invention;
Fig. 3 is the flowchart 2 of message processing method according to embodiments of the present invention;
Fig. 4 is the normal Message processing schematic diagram of active router according to the preferred embodiment of the invention;
Fig. 5 is that active router according to the preferred embodiment of the invention is delayed the Message processing schematic diagram of machine;
Fig. 6 is the structured flowchart one of message process device according to embodiments of the present invention;
Fig. 7 is the structured flowchart for informing module 66 of message device according to embodiments of the present invention;
Fig. 8 is the structured flowchart one of router according to embodiments of the present invention;
Fig. 9 is the structured flowchart two of message process device according to embodiments of the present invention;
Figure 10 is the structured flowchart of the judge module 94 of message device according to embodiments of the present invention;
Figure 11 is the structured flowchart three of message device according to embodiments of the present invention;
Figure 12 is the structured flowchart two of router according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
The embodiment of the method that the embodiment of the present application 1 is provided can be in router, terminal or similar computing Performed in device.Exemplified by running on the router, Fig. 1 is the hardware of the router of the message processing method of the embodiment of the present invention Structured flowchart.As shown in figure 1, router 10 can include one or more (processors of (one is only shown in figure) processor 102 102 can include but is not limited to Micro-processor MCV or PLD FPGA etc. processing unit), for data storage Memory 104 and transmitting device 106 for communication function.It will appreciated by the skilled person that shown in Fig. 1 Structure be only illustrate, it does not cause to limit to the structure of above-mentioned electronic installation.For example, router may also include than in Fig. 1 Shown more either less components have the configuration different from shown in Fig. 1.
Memory 104 can be used for the software program and module of storage application software, such as the message in the embodiment of the present invention Programmed instruction/module corresponding to processing method, processor 102 by operation be stored in software program in memory 104 and Module, so as to perform various function application and data processing, that is, realize above-mentioned method.Memory 104 may include at a high speed with Machine memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or other it is non-easily The property lost solid-state memory.In some instances, memory 104 can further comprise depositing relative to processor 102 is remotely located Reservoir, these remote memories can pass through network connection to router 10.The example of above-mentioned network includes but is not limited to interconnect Net, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include The wireless network that the communication providerses of router 10 provide.In an example, transmitting device 106 includes a network adapter (Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to interconnection Net is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, and it is used for Wirelessly communicated with internet.
A kind of message processing method for running on router is provided in the present embodiment, and Fig. 2 is implemented according to the present invention The flow chart one of the message processing method of example, as shown in Fig. 2 the flow comprises the following steps:
Step S202, active router receive the request message from user, wherein, request message needs to be replied;
Step S204, active router reply message according to request message to user;
Step S206, the information of user is informed to standby router, wherein, the information of the user is used to notify standby router not The request message from the user is replied, active router and standby router are main and standby relation.
By above-mentioned steps, active router replys message according to the request message being used for user, and notifies standby router The request message from the user is not replied, user obtain address be active router address, by main road by Above-mentioned between device and standby router interacts, and solves the address that user obtains in the networking of two-shipper cold standby in correlation technique and carries The problem of uncertain, improve the validity that user obtains router address.
Alternatively, the active router and standby router being related in above-mentioned steps can only be main and standby relation differences, both Can be with identical or different, when necessary in structure, active router can be changed mutually with standby router, a certain use The active router at family can be the standby router of other users.
Alternatively, step S204 and step S206 execution sequence can exchange, you can to first carry out step S206, Then S204 is performed again.
Alternatively, in step S206, active router can inform the information of user using various ways to standby router, For example, active router can inform the information of user in idle to standby router, in another example, active router can be in pre- timing Long introversive standby router informs the information of the user, wherein, above-mentioned scheduled duration is that standby router delay replys request message Duration.
By the above-mentioned technical proposal of the embodiment of the present invention, active router can reply request message in standby router delay Duration in the information of the user is informed to standby router, ensure that standby router is replied in the duration of request message in delay and receive The user profile informed to active router, it ensure that user obtains the efficiency of router address.
Alternatively, above-mentioned scheduled duration can be more than the time that active router replys message to user.That is, standby router The duration that user's request message is replied in delay can be more than the time that active router replys message to user.
By the above-mentioned technical proposal of the embodiment of the present invention, by standby router delay reply user's request message when grow up The time of message is replied to user in active router, it is ensured that when standby router postpones to reply user's request message Between reach before, active router to user reply message, ensure that user can get the address of active router, improve user Obtain the accuracy of router address.
Alternatively, above-mentioned request message can include at least one of:Route requests RS messages, DHCPv6 messages, on At least one of can be included by stating the message of reply:Advertising of route RA messages, DHCPv6 messages.
A kind of message processing method for running on router is additionally provided in the present embodiment, and Fig. 3 is according to of the invention real The flowchart 2 of the message processing method of example is applied, as shown in figure 3, the flow comprises the following steps:
Step S302, standby router receive the request message of user, wherein, request message needs to be replied;
Step S304, standby router judge whether to receive the information of user from active router, wherein, active router and standby Router is main and standby relation;
Step S306, standby router, please not to being somebody's turn to do for user in the case where judged result is to receive the information of user Message is asked to be replied.
By above-mentioned steps, standby router is standby to be judged whether to receive the information of user from active router, is receiving user Information in the case of the request message of user is not replied, pass through the above-mentioned friendship between active router and standby router Mutually, solve the address that user obtains in the networking of two-shipper cold standby in correlation technique and carry probabilistic problem, improve user Obtain the validity of router address.
Alternatively, the active router and standby router being related in above-mentioned steps can only be main and standby relation differences, both Can be with identical or different, when necessary in structure, active router can be changed mutually with standby router, a certain use The active router at family can be the standby router of other users.
Alternatively, in step s 304, standby router can judge whether to receive from active router using various ways The information of user, for example, standby router can judge whether to receive user's immediately when receiving the request message of user Information, in another example, standby router can judge whether from active router according to the information that user whether is received in scheduled duration Receive the information of user.Compared with judging whether to receive the mode of information of user immediately, according to being in the given time The no information for receiving user judges whether to receive the information of user from active router, for the request report of primary processor reception user The information of text and transmission user have reserved the time, improve the accuracy that user obtains route-map.
By the above-mentioned technical proposal of the embodiment of the present invention, whether standby router according to receiving user's in the given time Information judges whether to receive the information of user from active router, receives the request message of user for primary processor and send and use The information at family has reserved the time, improves the accuracy that user obtains route-map.
Alternatively, in the case that standby router does not receive the information of user in scheduled duration, various ways can be used Handled, for example, standby router can interact with primary processor, the state of primary processor is determined, according to primary processor State determines whether to reply the request message of user.In another example standby router can not receive use in scheduled duration In the case of the information at family, the request message of user is replied.
By the above-mentioned technical proposal of the embodiment of the present invention, standby router does not receive the information of user in scheduled duration In the case of, the request message of user is replied, improves the efficiency that user obtains router address.
Alternatively, above-mentioned scheduled duration can be more than the time that active router replys message to user.That is, standby router The duration that user's request message is replied in delay can be more than the time that active router replys message to user.
By the above-mentioned technical proposal of the embodiment of the present invention, by standby router delay reply user's request message when grow up The time of message is replied to user in active router, it is ensured that when standby router postpones to reply user's request message Between reach before, active router to user reply message, ensure that user can get the address of active router, improve user Obtain the accuracy of router address.
Alternatively, above-mentioned request message can include at least one of:Route requests RS messages, DHCPv6 messages, on At least one of can be included by stating the message of reply:Advertising of route RA messages, DHCPv6 messages.
Based on above-described embodiment and optional embodiment, to illustrate that the whole flow process of scheme interacts, in this preferred embodiment In, for active router is available and primary processor is delayed, two kinds of situations of machine illustrate respectively.
In the networking of two-shipper cold standby, standby router does RA messages and the response of DHCPv6 message delay, works as active and standby router After receiving multicast RS simultaneously, within the time of standby router delay response, active router bio-occlusion user replys unicast RA reports , it is necessary to tell the user MAC (acting on the information with above-mentioned user) for replying RA mesh to standby route while text or DHCPv6 messages Device, this user MAC of standby router records, and then standby router responds to RS the or DHCPv6 messages of this MAC user, closes Reason time (ensuring that user is successfully accessed from active router) (acting on above-mentioned scheduled duration) discharges this suppression afterwards.Release suppresses Afterwards, if receiving RS the or DHCPv6 messages of this MAC user again, above-mentioned flow is repeated.Standby router receive user RS or After person's DHCPv6 messages, if not receiving other routers (such as active router) within the time of delay response message notices this use The MAC at family, after (now think that active router delay machine), standby router responds delay time to the user's message, there is provided connects Enter, user obtains address and gateway from standby router.For ensure user can only get active router IPv6 prefix addresses or DHCPv6 addresses, and using active router as gateway, the time of standby router delay response message is set greater than active router Notice the time needed for user MAC.
Below for active router is available and primary processor is delayed, two kinds of situations of machine are illustrated respectively.
Fig. 4 is the normal Message processing schematic diagram of active router according to the preferred embodiment of the invention, as shown in figure 4, just It is broad band remote server (Broadband Remote Access Server, referred to as BRAS) main frame (main road to begin to configure R1 By device), R2 is BRAS standby hosts (standby router), and standby host configuration response postpones.In the case of R1 is available:
Send multicast RS messages (stateless access) first when user starts shooting or retransmited after sending multicast RS first DHCPv6 Solicit has found message (stateful access), because R2 is standby router delay response message, the preferential R2 of R1 RS messages and Solicit messages are handled, when R1 is that stateless accesses, before user can be according to the RA messages generation IPv6 that R1 is sent Sew address and gateway;When R1 provides stateful access, the RA messages that user can send according to R1 generate gateway, and obtain R1 hairs Reach the standard grade the DHCPv6 addresses for the Advertise messages distribution sent.So no matter R1 be stateless access or stateful access, this When user be all to obtain IPv6 addresses and gateway from R1.
A RA content informations are replicated while the RA messages that R1 is sent to user, message source MAC is the MAC of user, Purpose MAC is R2 MAC (R2 MAC can be configured on R1 in advance), and so as to which RA is sent to R2 by R1, R2 receives the RA messages When process, after the source MAC for parsing outgoing packet, by this MAC do access suppress, RS messages and DHCPv6 messages to the MAC are all Respond.Reasonable time (user is successfully accessed from R1) discharges the suppression afterwards.After release suppresses, if receiving this again RS the or DHCPv6 messages of MAC user, repeat above-mentioned response suppression flow.Ensure that R1 it is available in the case of user can only be from R1 IPv6 addresses and gateway are obtained, without obtaining IPv6 addresses and gateway from R2.User in two-shipper cold standby networking is avoided to obtain The situation of multiple gateway.
Fig. 5 is that active router according to the preferred embodiment of the invention is delayed the Message processing schematic diagram of machine, as shown in figure 5, matching somebody with somebody It is BRAS main frames to put R1, and R2 is BRAS standby hosts, and standby host configuration response postpones.In the case where main frame R1 delays machine:
Send multicast RS messages (stateless access) first when user starts shooting or retransmited after sending multicast RS first DHCPv6 Solicit messages (stateful access), the R1 machines of delaying are not responding to user's message, and R2 does not have within the delay response time yet The user MAC of R1 unicasts notice RA messages are received, so the R2 delay response times respond user's message after, when R2 is ill-mannered When state accesses, the RA messages that user can send according to R2 generate IPv6 prefix addresses and gateway;When R2 provides stateful access, The RA messages that user can send according to R2 generate gateway, and obtain the DHCPv6 addresses of the Advertise messages distribution of R2 transmissions Reach the standard grade.So it is stateless access or stateful access regardless of R2, now user can only be from R2 acquisition IPv6 addresses and gateway.
By the above-mentioned technical proposal of the embodiment of the present invention, it ensure that in the case of primary processor is normal, user can only IPv6 prefix addresses or the DHCPv6 addresses of active router are got, and using active router as gateway, and delayed in primary processor In the case of the primary processor exception such as machine, user can also get IPv6 prefix addresses or the DHCPv6 addresses of standby router, and In case router improves reliability and accuracy that user obtains router address and gateway as gateway.
Alternatively, in a network comprising multiple standby routers in the case of, different standby router can be set Different release time so that in the case where primary processor delays machine, carried out first by release time most short standby router Reason, release time it is most short standby router it is normal in the case of, to remaining for router advertisement user's MAC address so that Other are all responded for router scheduled time inter-process MAC RS messages and DHCPv6 messages.Each standby router is released The set-up mode of the similar standby router with above-described embodiment of setting of time is put, is not repeated here.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
Additionally provide a kind of message device and router in the present embodiment, the device is used to realizing above-described embodiment and excellent Embodiment is selected, had carried out repeating no more for explanation.As used below, term " module " can realize predetermined function Software and/or hardware combination.Although device described by following examples is preferably realized with software, hardware, Or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 6 is the structured flowchart one of message process device according to embodiments of the present invention, as shown in fig. 6, the device includes: First receiving module 62, first replys module 64, informs module 66.The device is illustrated below.
First receiving module 62, for receiving the request message from user, wherein, request message needs back It is multiple;First replys module 64, is connected with above-mentioned first receiving module 62, for replying message to user according to request message;Accuse Know module 66, be connected with above-mentioned first receiving module 62, for informing the information of user to standby router, wherein, inform user Information be used to notify standby router not reply the request message from user, active router and standby router are active and standby Relation.
Fig. 7 is the structured flowchart for informing module 66 of message device according to embodiments of the present invention, as shown in fig. 7, the announcement Know that module 66 includes:
Informing unit 72, for the information of user to be informed to standby router in scheduled duration, wherein, scheduled duration is standby Router delay replys the duration of request message.
Alternatively, above-mentioned scheduled duration is more than the time that active router replys message to user.
Alternatively, above-mentioned request message includes at least one of:Route requests RS messages, DHCPv6 messages, above-mentioned time Multiple message includes at least one of:Advertising of route RA messages, DHCPv6 messages.
Fig. 8 is the structured flowchart one of router according to embodiments of the present invention, as shown in figure 8, the above-mentioned implementation of the router The first message process device 82 in example shown in Fig. 6 or Fig. 7.
Fig. 9 is the structured flowchart two of message process device according to embodiments of the present invention, as shown in figure 8, the device includes: Second receiving module 92, judge module 94, second reply module 96.The device is illustrated below.
Second receiving module 92, for receiving the request message from user, wherein, request message needs back It is multiple;Judge module 94, it is connected with above-mentioned second receiving module 92, for judging whether to receive the letter of user from active router Breath, wherein, active router and standby router are main and standby relation;Second replys module 96, is connected with above-mentioned judge module 94, is used for Standby router is not replied the request message of user in the case where receiving the information of user.
Figure 10 is the structured flowchart of the judge module 94 of message device according to embodiments of the present invention, as shown in Figure 10, should Judge module 94 includes:
Judging unit 102, for according to the information that user whether is received in scheduled duration, judging whether from active router Receive the information of user.
Figure 11 is the structured flowchart three of message device according to embodiments of the present invention, as shown in figure 11, the device:Except including Outside all modules shown in Fig. 9, in addition to:
3rd replys module 112, in the case of the information for not receiving user in scheduled duration, the request to user Message is replied.
Alternatively, above-mentioned scheduled duration is more than the time that active router replys message to user.
Alternatively, above-mentioned request message includes at least one of:Route requests RS messages, DHCPv6 messages, above-mentioned time Multiple message includes at least one of:Advertising of route RA messages, DHCPv6 messages.
Figure 12 is the structured flowchart two of router according to embodiments of the present invention, as shown in figure 12, the above-mentioned reality of the router Apply the second message process device 122 shown in Fig. 9 to any one of Figure 11 in example.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any The form of combination is located in different processors respectively.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can The program code for performing following steps to be arranged to storage to be used for:
S1, active router receive the request message from user, wherein, request message needs to be replied;
S2, active router reply message according to request message to user;
S3, the information of user is informed to standby router, wherein, the information of user is used to notifying standby router not to using by oneself The request message at family is replied, and active router and standby router are main and standby relation.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Active router is to standby Router informs that the information of user includes:Active router informs the information of user in scheduled duration to standby router, wherein, in advance Regularly a length of standby router delay replys the duration of request message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Scheduled duration is more than Active router replys the time of message to user.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Request message includes At least one of:Route requests RS messages, DHCPv6 messages;And/or the message of reply includes at least one of:Route Notice RA messages, DHCPv6 messages.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can The program code for performing following steps to be arranged to storage to be used for:
S1, standby router receive the request message of user, wherein, request message needs to be replied;
S2, judge whether to receive the information of user from active router for router, wherein, active router and standby router For main and standby relation;
S3, standby router do not enter in the case where judged result is to receive the information of user to the request message of user Row is replied.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Standby router judges The information of user whether is received from active router to be included:Standby router is according to the letter that user whether is received in scheduled duration Breath, judges whether to receive the information of user from active router.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Standby router is pre- In the case of the information for not receiving user in timing is long, the request message of user is replied.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Scheduled duration is more than Active router replys the time of message to user.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Request message includes At least one of:Route requests RS messages, DHCPv6 messages;And/or the message of reply includes at least one of:Route Notice RA messages, DHCPv6 messages.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Active router The request message from user is received, wherein, request message needs to be replied;Active router is according to request message to user Reply message;The information of user is informed to standby router, wherein, the information of user is used to notify standby router not to from user Request message replied, active router and standby router are main and standby relation.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Active router Inform that the information of user includes to standby router:Active router informs the information of user in scheduled duration to standby router, its In, scheduled duration is the duration that standby router delay replys request message.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Scheduled duration The time of message is replied to user more than active router.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Request message Including at least one of:Route requests RS messages, DHCPv6 messages;And/or the message of reply includes at least one of: Advertising of route RA messages, DHCPv6 messages.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Standby router The request message of user is received, wherein, request message needs to be replied;Standby router judges whether to receive from active router To the information of user, wherein, active router and standby router are main and standby relation;Standby router is to receive user in judged result Information in the case of, the request message of user is not replied.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Standby router The information for judging whether to receive user from active router includes:Whether standby router receives user's according in scheduled duration Information, judge whether to receive the information of user from active router.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Standby router In the case of the information for not receiving user in scheduled duration, the request message of user is replied.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Scheduled duration The time of message is replied to user more than active router.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Request message Including at least one of:Route requests RS messages, DHCPv6 messages;And/or the message of reply includes at least one of: Advertising of route RA messages, DHCPv6 messages.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (16)

  1. A kind of 1. message processing method, it is characterised in that including:
    Active router receives the request message from user, wherein, the request message needs to be replied;
    The active router replys message according to the request message to the user;
    The information of the user is informed to standby router, wherein, the information of the user is used to notify that the standby router is not right The request message from the user is replied, and the active router and the standby router are main and standby relation.
  2. 2. according to the method for claim 1, it is characterised in that the active router informs the use to the standby router The information at family includes:
    The active router informs the information of the user in scheduled duration to the standby router, wherein, the pre- timing A length of standby router delay replys the duration of the request message.
  3. 3. according to the method for claim 2, it is characterised in that the scheduled duration is more than the active router to the use Reply the time of the message in family.
  4. 4. according to the method in any one of claims 1 to 3, it is characterised in that
    The request message includes at least one of:Route requests RS messages, DHCPv6 messages;And/or
    The message replied includes at least one of:Advertising of route RA messages, DHCPv6 messages.
  5. A kind of 5. message processing method, it is characterised in that including:
    Standby router receives the request message of user, wherein, the request message needs to be replied;
    The standby router judges whether to receive the information of the user from active router, wherein, the active router and institute It is main and standby relation to state standby router;
    The standby router is in the case where judged result is to receive the information of the user, not to being asked described in the user Message is asked to be replied.
  6. 6. according to the method for claim 5, it is characterised in that the standby router judges whether to receive from active router The information of the user includes:
    The standby router judges whether to receive from active router according to the information for whether receiving the user in scheduled duration To the information of the user.
  7. 7. according to the method for claim 6, it is characterised in that also include:
    In the case that the standby router does not receive the information of the user in the scheduled duration, to described in the user Request message is replied.
  8. 8. according to the method described in claim 7, it is characterised in that the scheduled duration is more than the active router to described User replys the time of the message.
  9. 9. the method according to any one of claim 5 to 8, it is characterised in that
    The request message includes at least one of:Route requests RS messages, DHCPv6 messages;And/or
    The message replied includes at least one of:Advertising of route RA messages, DHCPv6 messages.
  10. A kind of 10. message process device, it is characterised in that including:
    First receiving module, for receiving the request message from user, wherein, the request message needs to be replied;
    First replys module, for replying message to the user according to the request message;
    Module is informed, for informing the information of the user to standby router, wherein, inform that the information of the user is used to notify The standby router is not replied the request message from the user, based on active router and the standby router Standby relation.
  11. 11. device according to claim 10, it is characterised in that described to inform that module includes:
    Informing unit, for the information of the user to be informed to the standby router in scheduled duration, wherein, the pre- timing A length of standby router delay replys the duration of the request message.
  12. 12. a kind of router, it is characterised in that including the device described in claim 10 or 11.
  13. A kind of 13. message process device, it is characterised in that including:
    Second receiving module, for receiving the request message from user, wherein, the request message needs to be replied;
    Judge module, for judging whether to receive the information of the user from active router, wherein, the active router and standby Router is main and standby relation;
    Second replys module, for the standby router in the case where receiving the information of the user, not to the user The request message replied.
  14. 14. device according to claim 13, it is characterised in that the judge module includes:
    Judging unit, for according to the information for whether receiving the user in scheduled duration, judging whether to connect from active router Receive the information of the user.
  15. 15. device according to claim 14, it is characterised in that also include:
    3rd replys module, in the case of the information for not receiving the user in the scheduled duration, to the user The request message replied.
  16. 16. a kind of router, it is characterised in that including the device any one of claim 13 to 15.
CN201610541210.0A 2016-07-08 2016-07-08 Message processing method, device and router Pending CN107592261A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610541210.0A CN107592261A (en) 2016-07-08 2016-07-08 Message processing method, device and router
PCT/CN2017/087578 WO2018006684A1 (en) 2016-07-08 2017-06-08 Message processing method and device, and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610541210.0A CN107592261A (en) 2016-07-08 2016-07-08 Message processing method, device and router

Publications (1)

Publication Number Publication Date
CN107592261A true CN107592261A (en) 2018-01-16

Family

ID=60901394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610541210.0A Pending CN107592261A (en) 2016-07-08 2016-07-08 Message processing method, device and router

Country Status (2)

Country Link
CN (1) CN107592261A (en)
WO (1) WO2018006684A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3641278A1 (en) 2018-10-17 2020-04-22 Siemens Aktiengesellschaft Method for providing redundant relay, in particular routing function, system, computer program and computer readable medium
CN111669400A (en) * 2020-06-19 2020-09-15 广西和你学科技发展有限公司 Method for filtering website of wireless router
CN112104531B (en) * 2020-08-25 2022-08-30 新华三技术有限公司 Backup implementation method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9210067B1 (en) * 2008-07-11 2015-12-08 Google Inc. Method and apparatus for exchanging routing information
CN101316236B (en) * 2008-07-23 2010-09-22 杭州华三通信技术有限公司 Vrrp backup group load sharing method and router
CN101355519B (en) * 2008-09-12 2010-11-10 杭州华三通信技术有限公司 Method and apparatus for implementing share of business stream load
CN101860453A (en) * 2010-06-10 2010-10-13 华为技术有限公司 Method, device and network system for event notification

Also Published As

Publication number Publication date
WO2018006684A1 (en) 2018-01-11

Similar Documents

Publication Publication Date Title
US9729501B2 (en) System and data card for stateless automatic configuration of IPv6 address and method for implementing the same
CN101883158B (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
EP3905628A1 (en) Message sending method and related device
CN111246453B (en) Data transmission method, user plane network element and control plane network element
US20180048633A1 (en) Perception-free authentication method and system, and control method and system based on the same
CN100536438C (en) Method for testing DHCPv6 service and client
US20100080206A1 (en) Autoconfiguration system for wireless sensor network and its method, and gateway apparatus for wireless sensor network
JP2020511083A (en) Service quality control method and device, SMF, UPF, UE, PCF and AN
JP5459809B2 (en) Method for obtaining the IP address of a dynamic host configuration protocol version 6 server, dynamic host configuration protocol version 6 server, and dynamic host configuration protocol version 6 communication system
US11153207B2 (en) Data link layer-based communication method, device, and system
US9641433B2 (en) Method, routing bridge, and system for sending packet
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
EP2677689A2 (en) Method, apparatus and system for network device configuration
CN107592261A (en) Message processing method, device and router
CN103795581A (en) Address processing method and address processing device
CN102025797A (en) Address prefix processing method, device, system and network equipment
EP3503484A1 (en) Message transmission method, device and network system
CN104468159A (en) Management method and device of dynamic host configuration protocol server and relay
CN107113229B (en) A kind of notice message treating method and apparatus
US20190036793A1 (en) Network service implementation method, service controller, and communications system
CN107453998B (en) Method and device for transmitting message
US20160182691A1 (en) System and Method for Operating Dual-Stack Devices
CN102857953A (en) Self-configuration method and device of base station
CN114124314B (en) Method for controlling client to be online, network equipment and client
CN103595711A (en) Adjusting safety access method and exchanger

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180116