CN104040986A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN104040986A
CN104040986A CN201280002282.8A CN201280002282A CN104040986A CN 104040986 A CN104040986 A CN 104040986A CN 201280002282 A CN201280002282 A CN 201280002282A CN 104040986 A CN104040986 A CN 104040986A
Authority
CN
China
Prior art keywords
packet
message
addresses
subscriber
mac addresses
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.)
Granted
Application number
CN201280002282.8A
Other languages
Chinese (zh)
Other versions
CN104040986B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104040986A publication Critical patent/CN104040986A/en
Application granted granted Critical
Publication of CN104040986B publication Critical patent/CN104040986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided is a message forwarding method. The method includes: receiving a first packet message from a network side, the first packet message being an Internet Protocol version 6 (IPv6) packet message, and the first packet message comprising a destination C-IPv6 address representing a user host and a destination V-MAC address identifying a user line; according to the destination C-IPv6 address in the first packet message, determining a destination C-MAC address which identifies the user host and is required by MAC packaging of a downlink user line; after replacing the destination V-MAC address in the first packet message with the destination C-MAC address identifying the user host, packaging same into a second packet message; according to the destination V-MAC address in the first packet message, determining a downlink user line interface of the second packet message; and forwarding the second packet message to the downlink user line interface. The message forwarding method provided in the above-mentioned technical solution can realize the forwarding of IPv6 messages through a static mapping rule.

Description

Message forwarding method and device
Message forwarding method and engineering device technique field
The present invention relates to internet arena, and in particular to a kind of message forwarding method and device.Background technology
In Internet protocol (Internet Protocol, IP) from Internet Protocol Version 4 (Internet Protocol version 4, IPv4 view version 6 (Internet Protocol version 6) are done to internet ten, IPv6) during transition, in order to obtain the support to IPv6 protocol stacks, generally require the edge device of user network, such as user gateway(Residential Gateway, RG), while IPv6 routes and forwarding capability is supported, also need to its network side support network-oriented the DHCP based on IPv6 before delay appoint (Dynamic Host Configuration Protocol for IPv6 Prefix Delegation, DHCPv6-PD), and supported in user side towards the automatically configuring of stateless address (Stateless Address Auto-Configuration, SLAAC) of subscriber's main station or the dynamic host configuration based on IPv6(DHCPv6) basic agreement and the function such as, this causes user network to generally require to change its edge routing device.
In access node(Access Node, AN) equipment, such as digital subscriber line access multiplex in access network(Digital Subscriber Line Access Multiplexer, DSLAM), optical line terminal(Optical Line Terminal, OLT) or multiuser residential unit(Multiple Dwelling Unit, MDU) etc. realize Virtual User gateway in equipment(Virtual Residential Gateway, VRG), user network can be made while obtaining route and supporting, it is to avoid to user network boundary device(Such as bridge type RG) replacing solved in the network device so that double stacks of access network upgrade to concentrate.
If supporting the VRG of IPv6 routes and forwarding capability to use traditional message repeater-transmitter in AN equipment System, the calculating of its matched routings and corresponding routing table (Routing Table) and neighbours Slow deposit resource capability requirement of the table (Neighbor Cache) to AN equipment still can be higher.The present invention provides the retransmission method of new IPv6 messages for support VRG AN equipment, the required routing table of Traditional IP v6 messages forwarding need not be set up in AN equipment and user side neighbours Slow deposits table, so as to save corresponding resource overhead in the design of AN equipment.
The content of the invention
The embodiments of the invention provide a kind of message forwarding method, it mainly realizes the forwarding of IPv6 messages by static mapping ruler.
To achieve the above object, on the one hand the embodiment of the present invention provides a kind of message forwarding method, and methods described includes:
Receive the first 4 blunt texts of packet from network side, the first packet text is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
Purpose C-IPv6 addresses in first packet message, determine the regular determination of static mappings between the C-IPv6 addresses in the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit, the blunt text of first packet of purpose C-MAC addresses foundation 4 and the purpose C-MAC addresses for identifying subscriber's main station;
Purpose V-MAC addresses in described first packet text are replaced with to the purpose C-MAC addresses of the mark subscriber's main station, second packet message is encapsulated as;
Purpose V-MAC addresses in first packet message, the downlink user line port of the second packet message is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in first packet message and subscriber line ports;
The second packet text is forwarded to the downlink user line port.
On the other hand the embodiment of the present invention provides a kind of apparatus for forwarding message, and described device includes: Receiving unit, for receiving the first packet message from network side, first packet message is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
First determining unit, to according to the described first packet, " the purpose C-IPv6 addresses in literary; determine the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit, the purpose C-MAC addresses are determined according to the static mappings rule between the C-IPv6 addresses in the first packet message and the purpose C-MAC addresses of mark subscriber's main station;
Processing unit, the purpose C-MAC addresses the purpose V-MAC addresses in the described first packet text to be replaced with to the mark subscriber's main station, is encapsulated as second packet message;
Second determining unit, to the purpose V-MAC addresses in first packet message, the blunt literary downlink user line port of the second packet 4 is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in first packet message and subscriber line ports;
Transmitting element, to forward the second packet message to the downlink user line port.Another further aspect of the embodiment of the present invention provides a kind of apparatus for forwarding message, and described device includes:Network interface;
Processor;
Memory;
Application program of the physical store in the memory, the application program includes can be used for making the processor and the system perform the instruction of procedure below:
The first 4 blunt texts of packet from network side are received by network interface, the first packet text is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
Purpose C-IPv6 addresses in first packet message, determine the purpose C-MAC addresses of the mark subscriber's main station needed for the MAC encapsulation of downlink user circuit, and the purpose C-MAC addresses are according to the C-IPv6 addresses in the blunt text of one packet 4 and the static mappings rule between the purpose C-MAC addresses of mark subscriber's main station are determined;
Purpose V-MAC addresses in described first packet text are replaced with to the purpose C-MAC addresses of the mark subscriber's main station, second packet message is encapsulated as;
Purpose V-MAC addresses in first packet message, the downlink user line port of the second packet message is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in first packet message and subscriber line ports;
The second packet message is forwarded to the downlink user line port.
The message forwarding method provided by above-described embodiment, access node apparatus is after receiving and coming from the message of network side, pass through the static mappings rule between the target MAC (Media Access Control) address and subscribers' line in message, it can determine the downlink user line port of the message, pass through purpose IPv6 addresses, final purpose MAC Address that can be true, the forwarding of packet message can be realized in the case where not needing conventional routing table and user side neighbours Slow to deposit table by above method IPv6 packet messages, so as to reduce the resource consumption of access node apparatus.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, cylinder will be made to the required accompanying drawing used in embodiment or description of the prior art below singly to introduce, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the network application Organization Chart of downlink message retransmission unit of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of embodiment of message forwarding method provided in an embodiment of the present invention; Flow chart;
Fig. 4 is a kind of structure chart of embodiment of apparatus for forwarding message provided in an embodiment of the present invention;Fig. 5 is the structure chart of another embodiment of apparatus for forwarding message provided in an embodiment of the present invention.Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in further detail.
1 is visible, in the described network architecture, includes Ethernet-Aggregation node (Ethernet Aggregation Node, Ε Α Ν) equipment and broadband networks to gateway in the network side of AN equipment(Broadband Network Gateway, BNG) equipment, include bridge type user gateway in the user side of AN equipment() and subscriber's main station Bridged-RG(Host), access node AN connects network side and user side, is responsible for forwarding the text from network side and from user side.Function, it will be provided with the function of router in control plane, and DHCPv6-PD agreements are supported as DHCPv6 client computer in network side, obtain the PD-IPv6 prefixes that operator distributes to user network;
It is the configurable virtual medium Access Control layer address addressed by line port of each VRG corresponding with subscribers' line in AN equipment(Virtual Media Access Control Address, V-MAC), the IPv6 generated based on the V-MAC addresses link-local address (Link-Local Address, LLA) can be used for the DHCPv6-PD agreements for supporting VRG network sides.
Embodiment one:
In AN equipment users side, VRG corresponding with subscribers' line distributes IPv6 addresses by DHCPv6 agreements as DHCPv6 servers to subscriber's main station.The IPv6 addresses for 128 bits that subscriber's main station is used, i.e. C-IPv6 addresses can be made up of 3 parts:PD-IPv6 prefixes+subnet ID (Subnet ID)+interface identifier(Interface Identifier, IID ) ;Wherein PD-IPv6 prefixes are distributed by operator by DHCPv6-PD agreements, and subnet ID can be determined by VRG, and both are constituted before C-IPv6 addresses 64;And IID is latter 64 of C-IPv6 addresses.If if operator distributes to the PD-IPv6 prefixes sheet of subscriber's main station as 64, the VRG in AN equipment need not can reallocate subnet ID.In AN equipment users side, VRG obtains the MAC Address of subscriber's main station, i.e. C-MAC addresses by DHCPv6 agreements.Because the C-IPv6 addresses that user side distributes to subscriber's main station by DHCPv6 agreements can be determined and be distributed by the VRG in AN equipment, so latter 64 in 128 IPv6 addresses of C-IPv6 addresses, i.e. IID parts can be by the mapping ruler of agreement by C-MAC addresses --- it are correspondingly generated.
Illustrate:The C-MAC addresses that VRG is obtained by DHCPv6 agreements are 0x00-AA-00-3F-2A-lC, and the IID parts of C-IPv6 addresses can be generated according to the mapping ruler arranged as follows:Fixed in C-MAC middle after inserting 2 byte OxFF-FE and generate 0x00-AA-00-FF-FE-3F-2A-lC, the 7th bit of the 1st byte is carried out after " no " computing again, so that the IID for generating C-IPv6 addresses is 0x02-AA-00-FF-FE-3F-2A-lC.The PD-IPv6 prefixes that VRG obtains subscriber's main station from network side DHCPv6-PD agreements are 2001:db8:1234:5600:/ 56, VRG are that subscriber's main station distribution Subnet ID are 0x03, and it is 2AA that VRG generates IID according to the C-MAC addresses 0x00-AA-00-3F-2A-lC of subscriber's main station:FF:FE3F:2A1, so that it is that the C-IPv6 addresses that subscriber's main station is distributed are 2001 to constitute VRG by DHCPv6 agreements:db8:1234:5603:2AA:FF:FE3F:2AlC /128.
Static mappings rule between the C-IPv6 addresses of subscriber's main station and the C-MAC of subscriber's main station, can arrange and be stored in AN in advance.Specific static mappings rule also depends on the realization of AN equipment, can be not limited to mapping ruler specified in above-mentioned example.Between C-IPv6 and C-MAC static mappings rule shellfish ' J, require nothing more than --- correspondence.
In another embodiment, in AN equipment users side, VRG corresponding with subscribers' line has found that (Neighbor Discovery, ND) agreement distributes IPv6 prefixes to subscriber's main station by neighbours.The C-IPv6 addresses of subscriber's main station are automatically generated after IPv6 prefixes are obtained by ND agreements.
Similar to foregoing embodiment, usual above-mentioned IPv6 prefixes are the IPv6 prefixes of 64, the IPv6 Prefix can be made up of 2 parts:PD-IPv6 prefixes+subnet ID (Subnet ID);Wherein PD-IPv6 prefixes are distributed by operator by DHCPv6-PD agreements, and subnet ID can be determined by VRG.If if operator distributes to the PD-IPv6 prefixes sheet of subscriber's main station as 64, the VRG in AN equipment need not can reallocate subnet ID.
Latter 64 of the C-IPv6 of subscriber's main station, i.e. IID parts, are generally generated according to the algorithms provided of IETF RFC 4291 by C-MAC, so as to establish static between C-IPv6 IID and C-MAC --- corresponding mapping ruler.
Illustrate:If the PD-IPv6 prefixes that VRG obtains subscriber's main station from network side DHCPv6-PD agreements are 2001:db8: 1234:5600:/ 56, VRG are that subscriber's main station distribution Subnet ID are 0x01.VRG is that the IPv6 prefixes that subscriber's main station is distributed are 2001 by ND agreements:db8:1234:5601:/64.
If the C-MAC addresses of subscriber's main station are 0x00-AA-00-3F-2A-3C, it is 0x00- AA-00-FF-FE-3F-2 A-3C to insert the IEEE EUI-64 addresses that are generated after 2 byte OxFF-FE in its middle static state, the 7th bit of the 1st byte is carried out after " no " computing again, so that the IID for generating C-IPv6 addresses is 0x02-AA-00-FF-FE-3F-2A-3C.
Subscriber's main station obtains IPv6 prefixes 2001 by ND agreements:db8:1234:5601:After/64, the above-mentioned IID generated by C-MAC by state algorithm, 2AA are added:FF:FE3F:2A3C, the C-IPv6 addresses that can generate subscriber's main station are 2001:db8: 1234:5601 :2AA:FF:FE3F:2A3C /128.
Based on the static mappings rule between the C-MAC preserved in access device and C-IPv6 realized in above-mentioned embodiment, on Forwarding plane, after the downlink grouped that AN equipment is received, can be directly according to the static mappings rule between the IID of above-mentioned subscriber's main station C-IPv6 addresses and the C-MAC of subscriber's main station, target MAC (Media Access Control) address is determined by its purpose IPv6 addresses, so as to realize the encapsulation to the downlink grouped;Above-mentioned purpose IPv6 addresses are the C-IPv6 addresses for identifying subscriber's main station, and above-mentioned purpose MAC Address is the C-MAC addresses for identifying subscriber's main station.
Based on such scheme, the embodiment of the present invention provides a kind of message forwarding method, and Fig. 2 is the flow chart of downlink message forwarding method provided in an embodiment of the present invention, and wherein the executive agent in the present embodiment is Fig. 1 Digital Subscriber Line Access Multiplexer DSLAM in middle support VRG AN equipment, such as access network;Optical line terminal OLT, multi-user unit MDU or Ethernet switch.From Figure 2 it can be seen that methods described includes:
201, receive the first packet message from network side, first packet message is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
It is preferred that, in step 201, first packet message can be the message that BNG is transmitted to AN equipment.Generally, the source IP address of the up IPv6 packet messages of subscriber's main station is the C-IPv6 addresses according to static mappings rule generation in previous embodiment;And the purpose IP address entrained by the downstream IP v6 packet messages that network side is returned after the upstream packet message is responded is exactly the C-IPv6 of subscriber's main station.The up IPv6 packet messages of subscriber's main station are after AN equipment, its source MAC(That is C-MAC addresses)BNG equipment is forwarded to behind the V-MAC addresses for being replaced by VRG;And the downstream IP v6 packets returned from BNG equipment, its target MAC (Media Access Control) address carried is exactly the corresponding V-MAC of VRG.AN equipment is that each subscriber line ports where VRG configure corresponding V-MAC addresses, the V-MAC addresses and the line port in AN equipment --- it is corresponding.
It is preferred that, the MAC Address of downstream interface corresponding with AN equipment on source MAC, i.e. BNG is also included in the first packet message.
202, the purpose C-IPv6 addresses in first packet message determine the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit;
Specifically, based on foregoing embodiment, it is recognised that when VRG uses DHCPv6 agreements to distribute C-IPv6 addresses for subscriber's main station, can be with the rule of the static mappings between configuration purpose C-IPv6 addresses and C-MAC addresses in AN equipment.Therefore, AN equipment is after the purpose C-IPv6 addresses in receiving the first packet message, you can determine the target MAC (Media Access Control) address of first packet message, i.e. purpose C-MAC addresses.
As shown in figure 3, step 202 may further include the steps: 2021, the interface identifier IID of 64 after obtaining in the purpose C-IPv6 addresses;
2022, the purpose CMAC addresses are determined according to the IID.
If for example, the purpose C-IPv6 addresses are 2001:db8:1234:5603:2AA:FF:FE3F:2AlC/128, it may be determined that the IID of 64 is 2AA thereafter:FF:FE3F:Static mappings rule between the C-IPv6 that 2AlCo is described with previous embodiment IID and C-MAC, by reverse computing, may further determine that C-MAC addresses is 0x00-AA-00-3F-2A-lC.
Based on foregoing embodiment, it will also be appreciated that when VRG uses ND agreements to distribute IPv6 prefixes for subscriber's main station, generally there is static mapping ruler between C-IPv6 addresses and C-MAC addresses that subscriber's main station is automatically generated.Therefore, AN equipment is after the purpose IP address in receiving the first packet message, you can determine the target MAC (Media Access Control) address of the first packet text, i.e. purpose C-MAC addresses.
If for example, the purpose C-IPv6 addresses are 2001:db8: 1234:5601 :2AA:FF:FE3F:2A3C/128, it may be determined that the IID of 64 is 2AA thereafter:FF:FE3F:Static mappings rule between the C-IPv6 that 2A3Co is described with previous embodiment IID and C-MAC, by reverse computing, may further determine that C-MAC addresses is 0x00-AA-00-3F-2A-3C.
203, by the described first packet, " the purpose V-MAC addresses in text replace with the purpose C-MAC addresses of the mark subscriber's main station, are encapsulated as second packet message;
Specifically, AN equipment to subscriber's main station when forwarding the first packet message, need to encapsulate again, can be by the source target MAC (Media Access Control) address in the blunt text of the first packet 4, i.e. VRG corresponding with subscribers' line V-MAC addresses replace with the C-MAC addresses of the target MAC (Media Access Control) address according to the next link determined in step 202, i.e. subscriber's main station in AN equipment.
It is preferred that, first can also can be also grouped the source MAC in 4 blunt texts simultaneously, that is the MAC Address of downstream interface corresponding with AN equipment replaces with the V-MAC addresses of VRG corresponding with subscribers' line in AN equipment on BNG, encapsulate so as to complete MAC and form new packet text, that is, the Two packet messages.
204, purpose V-MAC addresses in first packet message, the second packet just blunt literary downlink user line port is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in first packet message and subscriber line ports;
More specifically, i.e. the purpose V-MAC addresses V-MAC addresses.Due to, user can be configured between V-MAC addresses and line port in AN equipment --- corresponding static mappings rule, for example by the numbering of AN equipment, the frame number related to subscribers' line, groove number and port numbers are uniformly incorporated into the available address space of V-MAC addresses in AN equipment, therefore, AN equipment is after the blunt text of downlink grouped 4 is received, you can determine the downlink user line port of this downlink grouped message.Specifically the embodiment of the static mappings rule between V-MAC addresses and line port, can find in the realization of many plant equipments, seldom repeat.Here the static mappings rule between V-MAC addresses and line port, requires nothing more than one-to-one corresponding.
205, it is " literary to forward the second packet to the downlink user line port.
Specifically AN equipment will encapsulate the second packet to be formed text by MAC and be forwarded to some downlink user line port in the AN equipment in step 203.Because the purpose MAC addresses of second packet message are C-MAC addresses, packet message mark uses the subscriber's main station of C-MAC addresses.
More specifically, after the downlink user line port that second packet text is determined by step 204, AN equipment will encapsulate the second packet message to be formed by MAC in step 203 and be forwarded to the downlink user line port.Because the target MAC (Media Access Control) address of second packet message is C-MAC addresses, packet message mark uses the subscriber's main station of C-MAC addresses.
Pass through above-described embodiment, access node AN equipment is realized after receiving and coming from the message of network side, by between the purpose V-MAC addresses in message and subscriber line ports --- corresponding static mappings rule, it may be determined that the downlink user line port of the message;Pass through purpose C-IPv6 addresses, it may be determined that the final purpose C-MAC addresses of downlink message.Pass through the above method, AN equipment energy Enough in the case where not needing routing table and user side neighbours Slow to deposit table, the forwarding of IPv6 packet messages is realized, so as to reduce the resource consumption to access node AN equipment.
As shown in figure 4, the embodiments of the invention provide a kind of apparatus for forwarding message, described device can be access node AN or the Ethernet switch described in Fig. 1.Described device includes:
Receiving unit 401, for receiving the first packet text from network side, " text is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line for first packet;
First determining unit 402, to the purpose C-IPv6 addresses in the blunt text of the described first packet 4, determines the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit;Processing unit 403, the purpose C-MAC addresses the purpose V-MAC addresses in the blunt text of the described first packet 4 to be replaced with to the mark subscriber's main station, is encapsulated as second packet message;
Second determining unit 404, to the purpose V-MAC addresses in the blunt text of the described first packet 4, the downlink user line port of the second packet text is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in first packet message and subscriber line ports;
Transmitting element 405, to forward the second packet text to the downlink user line port.More specifically, in said device, the purpose V-MAC addresses and the static mappings rule of the subscriber line ports, the purpose V-MAC addresses and the static mappings rule of the subscriber line ports, the determining unit 402 are also specifically used to:
According to static mappings rule between the downlink user line port, determine the downlink user line port of the second packet text.
That is, the second determining unit 404 is according between the purpose V-MAC addresses and subscriber line ports --- corresponding static mappings rule, determine the downlink user line port of the second packet message.
The transmitting element 405 specifically for:By the second packet message in the downlink user circuit In port, forwarded to the corresponding subscriber's main station in the subscriber's main station C-MAC addresses.
It is preferred that, first determining unit 402 obtains interface identifier IID latter 64 in the purpose C-IPv6 addresses, the purpose C-MAC addresses according to needed for the IID determines processing unit 404.
It is preferred that, the processing unit 403 is additionally operable to after the purpose V-MAC addresses in the described first packet text are replaced with into the purpose C-MAC addresses of the mark subscriber's main station when first packet message is encapsulated as into second packet message:The source MAC is replaced with to the purpose V-MAC addresses of the mark subscribers' line.
In the above-described embodiments, due to existing between the purpose V-MAC addresses in downlink message and subscriber line ports --- corresponding static mappings rule, the C-IPv6 of mark subscriber's main station in downlink message exists with the C-MAC that subscriber's main station is used --- and corresponding static mappings are regular, and AN equipment deposits table even without the routing table needed for retaining traditional routing type RG for supporting message forwarding with the user side neighbours Slow needed for supporting ND agreements.
Above-mentioned apparatus for forwarding message is that, in order to realize the method described in Fig. 2, specific manifestation form can be set according to concrete application.
Fig. 5 is the schematic diagram of another downlink message retransmission unit of the embodiment of the present invention, and described device can be access node AN or the Ethernet switch described in Fig. 1.Described device includes network interface 51, processor 52 and memory 53.System bus 54 is used to connect network interface 51, processor 52 and memory 53.
Network interface 51 is used for and wideband network gateway(BNG) and subscriber's main station communication.
Memory 53 can have software module and device driver in permanent memory, such as hard disk drive and flash memory, memory 53.Software module is able to carry out the various functions module of the above method of the present invention;Device driver can be network and interface drive program.
When device starts, these component softwares are loaded into memory 53, are then accessed and are performed by processor 52 and such as give an order:
The first 4 blunt texts of packet from network side are received by network interface, the first packet text is mutual The IPv6 packet messages of networking protocol version 6, first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
Purpose C-IPv6 addresses in first packet message, determine the regular determination of static mappings between the C-IPv6 addresses in the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit, the blunt text of first packet of purpose C-MAC addresses foundation 4 and the purpose C-MAC addresses for identifying subscriber's main station;
Purpose V-MAC addresses in described first packet text are replaced with to the purpose C-MAC addresses of the mark subscriber's main station, second packet message is encapsulated as;
Purpose V-MAC addresses in first packet message, the downlink user line port of the second packet message is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in first packet message and subscriber line ports;
The second packet message is forwarded to the downlink user line port.
In preferably embodiment, the purpose C-IPv6 addresses in first packet message determine the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit, specifically included:Interface identifier I ID latter 64 in the purpose C-IPv6 addresses are obtained, shelter states I ID and determines the purpose CMAC addresses afterwards.
Above-mentioned apparatus for forwarding message is that, in order to realize the method described in Fig. 2, specific manifestation form can be set according to concrete application.
Professional should further appreciate that, the unit and algorithm steps of each example described with reference to the embodiments described herein, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate the interchangeability of hardware and software, the composition and step of each example are generally described according to function in the above description.These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can realize described function to each specific application using distinct methods, but this realization is it is not considered that super Go out the scope of the present invention.
The step of method or algorithm for being described with reference to the embodiments described herein, hardware, the software module of computing device, or the combination of the two can be used to implement.Software module can be placed in internal memory, random access memory(RAM), read-only storage(ROM), in electrically programmable R0M, electrically erasable R0M, register, hard disk, moveable magnetic disc, any other form of storage medium well known in CD-ROM, or technical field.
Above-described embodiment; the purpose of the present invention, technical scheme and beneficial effect are further described; it should be understood that; it the foregoing is only the embodiment of the present invention; the protection domain being not intended to limit the present invention; within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., should be included in the scope of the protection.

Claims (1)

  1. Claims
    1st, a kind of message forwarding method, it is characterised in that methods described includes:
    Receive the first 4 blunt texts of packet from network side, the first packet text is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
    Purpose C-IPv6 addresses in first packet message, the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit are determined, the purpose C-MAC addresses are determined according to the static mappings rule between the purpose C-IPv6 addresses in the first packet message and the purpose C-MAC addresses of mark subscriber's main station;
    Purpose V-MAC addresses in described first packet text are replaced with to the purpose C-MAC addresses of the mark subscriber's main station, second packet message is encapsulated as;
    Purpose V-MAC addresses in first packet message, the downlink user line port of the second packet message is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in the described first packet text and subscriber line ports;
    The second packet message is forwarded to the downlink user line port.
    2nd, message forwarding method as claimed in claim 1, it is characterized in that, the purpose C-IPv6 addresses in the described first packet text, determine the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit, specifically include:
    The interface identifier IID of 64 after obtaining in the purpose C-IPv6 addresses;
    The purpose C-MAC addresses are determined according to the IID.
    3rd, message forwarding method as claimed in claim 1, it is characterised in that also include source MAC in first packet message,
    The purpose V-MAC addresses by the described first packet text replace with the purpose C-MAC addresses of the mark subscriber's main station, are encapsulated as also including during second packet message: The source MAC is replaced with to the V-MAC addresses of mark subscribers' line.
    4th, message forwarding method as claimed in claim 1, it is characterized in that, subscriber's main station is distributed to by DHCPv6 agreements by local terminal in the purpose C-IPv6 addresses of the mark subscriber's main station, the interface identifier IID of 64 is generated according to static mappings rule by the C-MAC addresses of subscriber's main station after in 128 of the C-IPv6 addresses.
    5th, a kind of apparatus for forwarding message, it is characterised in that described device includes:
    Receiving unit, for receiving the first packet message from network side, first packet message is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
    First determining unit, to according to the described first packet, " the purpose C-IPv6 addresses in text; determine the purpose C-MAC addresses of the required mark subscriber's main station of the MAC encapsulation of downlink user circuit, the purpose C-MAC addresses are determined according to the static mappings rule between the purpose C-IPv6 addresses and the purpose C-MAC addresses of mark subscriber's main station in the first packet text;
    Processing unit, the purpose C-MAC addresses the purpose V-MAC addresses in the described first packet text to be replaced with to the mark subscriber's main station, is encapsulated as second packet message;
    Second determining unit, to the purpose V-MAC addresses in first packet message, the blunt literary downlink user line port of the second packet 4 is determined, the downlink user line port of the second packet text is determined according to the static mappings rule between the purpose V-MAC addresses in first packet message and subscriber line ports;
    Transmitting element, to forward the second packet text to the downlink user line port.
    6th, downlink message retransmission unit as claimed in claim 5, it is characterised in that first determining unit specifically for:
    The interface identifier IID of 64 after obtaining in the purpose C-IPv6 addresses;
    The purpose C-MAC addresses are determined according to the IID.
    7th, apparatus for forwarding message as claimed in claim 5, it is characterised in that first packet message In also include source MAC,
    The processing unit is replacing with the purpose V-MAC addresses in first packet message purpose C-MAC addresses of the mark subscriber's main station, is encapsulated as being additionally operable to during second packet message:
    The source MAC is replaced with to the V-MAC addresses of mark subscribers' line.
    8th, apparatus for forwarding message as claimed in claim 5, it is characterized in that, subscriber's main station is distributed to by DHCPv6 agreements by the apparatus for forwarding message in the purpose C-IPv6 addresses of the mark subscriber's main station, the interface identifier IID of 64 is generated according to static mappings rule by the C-MAC addresses of subscriber's main station after in 128 of the purpose C-IPv6 addresses.
    9th, a kind of apparatus for forwarding message, it is characterised in that described device includes:
    Network interface;
    Processor;
    Memory;Put the instruction for performing procedure below:
    The first 4 blunt texts of packet from network side are received by network interface, the first packet text is the IPv6 packet messages of internet protocol version 6, and first packet message includes the purpose C-IPv6 addresses of mark subscriber's main station and the purpose V-MAC addresses of mark subscribers' line;
    Purpose C-IPv6 addresses in first packet message, the purpose C-MAC addresses for identifying subscriber's main station needed for the MAC encapsulation of downlink user circuit are determined, the purpose C-MAC addresses are determined according to the static mappings rule between the purpose C-IPv6 addresses in the first packet message and the purpose C-MAC addresses of mark subscriber's main station;
    Purpose V-MAC addresses in described first packet text are replaced with to the purpose C-MAC addresses of the mark subscriber's main station, second packet message is encapsulated as;
    Purpose V-MAC addresses in first packet message, determine the downlink user line port of the second packet message, the downlink user line port of the second packet text is according to described Static mappings rule between purpose V-MAC addresses and subscriber line ports in first packet message is determined;
    The second packet message is forwarded to the downlink user line port.
    10, apparatus for forwarding message as claimed in claim 9, it is characterized in that, subscriber's main station is distributed to by DHCPv6 agreements by the apparatus for forwarding message in the purpose C-IPv6 addresses of the mark subscriber's main station, the interface identifier IID of 64 is generated according to static mappings rule by the C-MAC addresses of subscriber's main station after in 128 of the purpose C-IPv6 addresses.
CN201280002282.8A 2012-12-10 2012-12-10 Message forwarding method and device Active CN104040986B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/086304 WO2014089746A1 (en) 2012-12-10 2012-12-10 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN104040986A true CN104040986A (en) 2014-09-10
CN104040986B CN104040986B (en) 2017-03-08

Family

ID=50933670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280002282.8A Active CN104040986B (en) 2012-12-10 2012-12-10 Message forwarding method and device

Country Status (2)

Country Link
CN (1) CN104040986B (en)
WO (1) WO2014089746A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333169A (en) * 2020-10-28 2021-02-05 锐捷网络股份有限公司 Message processing method and device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132285A (en) * 2006-08-23 2008-02-27 华为技术有限公司 System and method for implementing MAC-IN-MAC
CN101213817A (en) * 2005-06-30 2008-07-02 艾利森电话股份有限公司 Mapping original MAC address of terminal to unique locally administrated virtual MAC address
US20080186965A1 (en) * 2006-08-15 2008-08-07 Huawei Technologies Co., Ltd. Method and system for forwarding data in layer-2 network
CN101521631A (en) * 2009-04-14 2009-09-02 华为技术有限公司 Treatment method, equipment and system for VPLS network messages
US20110075666A1 (en) * 2009-09-30 2011-03-31 International Business Machines Corporation Autoconfiguration Of An IPv6 Component In A Segmented Network
CN102025796A (en) * 2010-11-23 2011-04-20 中兴通讯股份有限公司 MAC (media access control) address updating method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100927126B1 (en) * 2007-11-26 2009-11-18 한국전자통신연구원 The entry and exit nodes of the MPS network with improved packet transmission speed, and the packet transmission speed improvement method of the MPS network system
CN101299718B (en) * 2008-06-13 2011-04-13 华为技术有限公司 Port switching method, network equipment and network system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213817A (en) * 2005-06-30 2008-07-02 艾利森电话股份有限公司 Mapping original MAC address of terminal to unique locally administrated virtual MAC address
US20080186965A1 (en) * 2006-08-15 2008-08-07 Huawei Technologies Co., Ltd. Method and system for forwarding data in layer-2 network
CN101132285A (en) * 2006-08-23 2008-02-27 华为技术有限公司 System and method for implementing MAC-IN-MAC
CN101521631A (en) * 2009-04-14 2009-09-02 华为技术有限公司 Treatment method, equipment and system for VPLS network messages
US20110075666A1 (en) * 2009-09-30 2011-03-31 International Business Machines Corporation Autoconfiguration Of An IPv6 Component In A Segmented Network
CN102025796A (en) * 2010-11-23 2011-04-20 中兴通讯股份有限公司 MAC (media access control) address updating method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333169A (en) * 2020-10-28 2021-02-05 锐捷网络股份有限公司 Message processing method and device, electronic equipment and computer readable medium
CN112333169B (en) * 2020-10-28 2023-05-23 锐捷网络股份有限公司 Message processing method, device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
WO2014089746A1 (en) 2014-06-19
CN104040986B (en) 2017-03-08

Similar Documents

Publication Publication Date Title
Wu et al. Transition from IPv4 to IPv6: A state-of-the-art survey
JP4801153B2 (en) Access device, routing device and method for supporting IPv6 stateless address configuration in communication network
US7706374B2 (en) Method for assigning IP address to terminal device and communication system
US20090285215A1 (en) Internet Protocol Version Six (IPv6) Addressing and Packet Filtering in Broadband Networks
WO2006101677A2 (en) Vpn services using address translation over an ipv6 network
CN101572692A (en) Method, system and equipment for IP address assignment
CN102238075A (en) IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
KR101311198B1 (en) Method and apparatus for connecting subscriber devices to an ipv6-capable aggregation network
Hossain et al. Performance analysis of three transition mechanisms between IPv6 network and IPv4 network: Dual Stack, Tunneling and Translation
Cui et al. State management in IPv4 to IPv6 transition
CN104040986A (en) Message forwarding method and device
CN105917634A (en) Method, device and system for dynamically allocating IP address
Jayanthi et al. Next generation internet protocol-Technical realms
Isaac Comparative Analysis of IPV4 and IPV6
Jeuk et al. Network segmentation in the cloud a novel architecture based on UCC and IID
Shang et al. IVI-based locator/ID separation architecture for IPv4/IPv6 transition
CN103457856B (en) Message processing method, system and routing device
CN101409692A (en) Method for implementing interconnect and intercommunication of telecom and Unicom through IP address
Hughes IPv6 Core Protocols
WO2019123630A1 (en) Communication device and communication method
Ryynänen Routed End-to-End Ethernet Network Proof of Concept
Wang et al. Mac address translation for enabling scalable virtual private lan services
CN110995884A (en) Method for cleaning and transmitting flow based on Anycast architecture DNS
Zaitsev et al. E6 Addressing Scheme and Network Architecture
Yu MPLS/IPv6 Gap Analysis

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