CN100387020C - Method of Transferring IPv4-IPv6 Address Mapping Relationship Using Overlapping Network - Google Patents
Method of Transferring IPv4-IPv6 Address Mapping Relationship Using Overlapping Network Download PDFInfo
- Publication number
- CN100387020C CN100387020C CNB2006100115034A CN200610011503A CN100387020C CN 100387020 C CN100387020 C CN 100387020C CN B2006100115034 A CNB2006100115034 A CN B2006100115034A CN 200610011503 A CN200610011503 A CN 200610011503A CN 100387020 C CN100387020 C CN 100387020C
- Authority
- CN
- China
- Prior art keywords
- neighbor
- packet
- node
- information
- tunnel endpoint
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域 technical field
用重叠网络传递IPv4与IPv6地址映射关系的方法属于互联网技术领域,尤其涉及IPv4与IPv6网络互联的隧道技术。The method for transferring the mapping relationship between IPv4 and IPv6 addresses by using an overlapping network belongs to the technical field of the Internet, and in particular relates to tunnel technology for interconnecting IPv4 and IPv6 networks.
背景技术 Background technique
在互联网由IPv4向IPv6过渡的过程中,IPv4网络中的IPv6网络,即IPv6 “孤岛”,由于没有与IPv6主干网络的直连线路,一般采用IPv6-in-IPv4隧道技术获得IPv6支持。常用的隧道技术有6to4技术和配置隧道。6to4隧道由于使用特殊前缀的IPv6地址,在过渡完成后还需要替换成普通IPv6地址,只能作为一种暂时的接入方法使用。因此,通常更推荐使用配置隧道接入IPv6网络。配置隧道的缺点是需要手工配置,管理开销大,虽然可以通过隧道代理,即Tunnel Broker,自动建立和维护配置隧道,但无论使用哪种方法,都会存在一个或少数几个接入点负责转发上述IPv6“孤岛”访问其他IPv6网络的流量。这种体系结构存在单故障点,容易成为网络瓶颈,而IPv6 “孤岛”之间的流量本身是可以直接通过IPv6“孤岛”间的IPv6 over IPv4隧道转发。建立隧道的关键在于获得隧道端点的IPv4地址以及可达的IPv6地址范围,如何协助IPv6“孤岛”网关获得其他IPv6“孤岛”网关的隧道端点信息就是本发明所要解决的问题。During the transition of the Internet from IPv4 to IPv6, the IPv6 network in the IPv4 network, that is, the IPv6 "island", generally adopts IPv6-in-IPv4 tunneling technology to obtain IPv6 support because there is no direct connection with the IPv6 backbone network. Commonly used tunneling technologies include 6to4 technology and configuration tunneling. Since the 6to4 tunnel uses an IPv6 address with a special prefix, it needs to be replaced with a normal IPv6 address after the transition is completed, so it can only be used as a temporary access method. Therefore, it is generally recommended to use configured tunnels to access IPv6 networks. The disadvantage of configuring the tunnel is that manual configuration is required, and the management overhead is high. Although the tunnel broker, that is, Tunnel Broker, can automatically establish and maintain the configuration tunnel, no matter which method is used, there will be one or a few access points responsible for forwarding the above-mentioned IPv6 "islands" access traffic from other IPv6 networks. This architecture has a single point of failure, which can easily become a network bottleneck, and the traffic between IPv6 "islands" itself can be directly forwarded through the IPv6 over IPv4 tunnel between IPv6 "islands". The key to establishing a tunnel is to obtain the IPv4 address of the tunnel endpoint and the reachable IPv6 address range, how to assist the IPv6 "island" gateway to obtain the tunnel endpoint information of other IPv6 "island" gateways is the problem to be solved by the present invention.
发明内容 Contents of the invention
本发明的目的在于提供一种在IPv4网络上利用重叠网络传递IPv6隧道端点信息即IPv4与IPv6地址映射关系的方法。The purpose of the present invention is to provide a method for transferring IPv6 tunnel end point information, that is, the mapping relationship between IPv4 and IPv6 addresses, using an overlay network on an IPv4 network.
本发明的特征在于:这是一种运行于IPv4/IPv6双栈路由器和IPv4/IPv6双栈三层交换机上利用P2P重叠网络在IPv4上传递IPv6 over IPv4隧道端点信息的方法,该方法依次含有以下步骤:The present invention is characterized in that: this is a kind of method that runs on IPv4/IPv6 dual-stack router and IPv4/IPv6 dual-stack three-layer switchboard and utilizes P2P overlapping network to transmit IPv6 over IPv4 tunnel end point information on IPv4, and this method contains following successively step:
步骤1.初始化,Step 1. Initialize,
为每个P2P重叠网络节点维护一个隧道端点信息数据库,用以保存已知的隧道端点信息,数据库中的每条信息包含:Maintain a tunnel endpoint information database for each P2P overlay network node to save known tunnel endpoint information, each piece of information in the database includes:
a1.序列号:递增,用以标记信息的新旧,即序列号越大,信息越新;a1. Serial number: Incremental, used to mark the new and old information, that is, the larger the serial number, the newer the information;
b1.IPv4地址:表示隧道端点的IPv4地址;b1.IPv4 address: indicates the IPv4 address of the tunnel endpoint;
c1.IPv6地址范围:表示隧道端点可达的IPv6地址范围;c1.IPv6 address range: indicates the reachable IPv6 address range of the tunnel endpoint;
d1.有效位:标记该信息是否有效;0表示无效,1表示有效;d1. Valid bit: mark whether the information is valid; 0 means invalid, 1 means valid;
e1.最近更新时间:纪录该信息最近更新的时间,作为删除超时没有更新的信息的依据;e1. Latest update time: record the latest update time of the information, as the basis for deleting information that has not been updated after timeout;
为每个P2P重叠网络节点设置以下6种控制分组,用于P2P重叠网络建立和维护,隧道端点信息扩散和更新:Set the following 6 control groups for each P2P overlay network node, which are used for P2P overlay network establishment and maintenance, tunnel endpoint information diffusion and update:
a.呼叫分组:进行邻居关系建立和保持工作,分为0型和1型;0型呼叫分组用于与陌生节点建立邻居关系,1型呼叫分组用于与现有邻居节点保持邻居关系;a. Call group: establish and maintain neighbor relationship, divided into type 0 and type 1; type 0 call group is used to establish neighbor relationship with unfamiliar nodes, and type 1 call group is used to maintain neighbor relationship with existing neighbor nodes;
b.更新分组:完成将本地隧道端点信息数据库中的信息更新至邻居的工作;b. Update grouping: complete the work of updating the information in the local tunnel endpoint information database to neighbors;
c.确认分组:完成对接收到的更新分组进行确认的工作;c. Confirm group: complete the work of confirming the received update group;
d.请求分组:进行向邻居索取所拥有的隧道端点信息的工作;d. Request grouping: perform the work of requesting the tunnel endpoint information owned by the neighbor;
e.注册分组:进行向中心注册机注册,要求加入P2P重叠网络的工作;e. Registration group: register with the central registration machine and request to join the P2P overlay network;
f.回复分组:作为对注册分组的回复,携带部分P2P节点IPv4地址信息,协助新节点加入P2P重叠网络;f. Reply packet: as a reply to the registration packet, it carries part of the P2P node IPv4 address information, and assists the new node to join the P2P overlay network;
为每个P2P重叠网络节点设置以下4种P2P重叠网络邻居关系状态,配合所述6种控制分组一起使用:Set the following four P2P overlay network neighbor relationship states for each P2P overlay network node, and use them together with the six control groups:
a.初始:表示邻居关系初始状态;a. Initial: Indicates the initial state of the neighbor relationship;
b.单向链路:表示已确认邻居通向该节点的单向链路;b. One-way link: Indicates the one-way link of the confirmed neighbor leading to the node;
c.双向链路:表示已确认邻居与该节点的双向链路;c. Two-way link: indicates that the two-way link between the neighbor and the node has been confirmed;
d.已更新:表示本地隧道端点信息数据库中信息已更新至邻居;d. Updated: Indicates that the information in the local tunnel endpoint information database has been updated to the neighbor;
设置中心注册机,使其作为普通节点加入到所述P2P重叠网络中,维护P2P重叠网络中所有节点实时IPv4地址信息,并协助新节点加入所述P2P重叠网络;Set the central registration machine to join the P2P overlay network as an ordinary node, maintain the real-time IPv4 address information of all nodes in the P2P overlay network, and assist new nodes to join the P2P overlay network;
步骤2.新节点按以下步骤注册加入所述P2P重叠网络:Step 2. The new node registers to join the P2P overlay network as follows:
步骤2.1.新节点向中心注册机发送注册分组,要求加入所述P2P重叠网络;Step 2.1. The new node sends a registration packet to the central registration machine, requesting to join the P2P overlay network;
步骤2.2.该中心注册机使用回复分组将随机选取的部分P2P节点IPv4地址信息发送给该新节点;Step 2.2. The central registration machine sends the IPv4 address information of some randomly selected P2P nodes to the new node using the reply packet;
步骤2.3.Step 2.3.
若该新节点接收到回复分组,则根据所得到的部分节点IPv4地址信息,向这些节点发送0型呼叫分组并设置邻居状态为初始;If the new node receives the reply packet, then according to the obtained part of the node IPv4 address information, send a type 0 call packet to these nodes and set the neighbor status as initial;
若该新节点超时没有接收到回复分组,则跳转至步骤2.1;If the new node does not receive a reply packet over time, then jump to step 2.1;
步骤3.按以下步骤建立和维护P2P重叠网络邻居关系以及完成隧道端点信息扩散和更新:Step 3. Follow the steps below to establish and maintain the P2P overlay network neighbor relationship and complete the diffusion and update of tunnel endpoint information:
步骤3.1.当邻居节点状态为初始时:Step 3.1. When the neighbor node state is initial:
若接收到该邻居发来的0型呼叫分组,则设置邻居节点状态为单向链路,发送1型呼叫分组至该邻居;If a type 0 paging packet is received from the neighbor, set the status of the neighbor node as a unidirectional link, and send a type 1 paging packet to the neighbor;
若接收到该邻居发来的1型呼叫分组,则设置邻居节点状态为双向链路,发送请求分组至该邻居;If the type 1 call packet sent by the neighbor is received, the state of the neighbor node is set as a bidirectional link, and the request packet is sent to the neighbor;
步骤3.2.当邻居节点状态为单向链路时:Step 3.2. When the state of the neighbor node is a unidirectional link:
若接收到该邻居发来的0型呼叫分组,则保持邻居节点状态为单向链路,发送1型呼叫分组至该邻居;If a type 0 paging packet is received from the neighbor, keep the status of the neighbor node as a one-way link, and send a type 1 paging packet to the neighbor;
若接收到该邻居发来的1型呼叫分组,则设置邻居节点状态为双向链路,发送请求分组至该邻居;If the type 1 call packet sent by the neighbor is received, the state of the neighbor node is set as a bidirectional link, and the request packet is sent to the neighbor;
若接收到该邻居发来的请求分组,则设置邻居节点状态为双向链路,发送更新分组用以将本地拥有的隧道端点信息更新至该邻居;If the request packet sent by the neighbor is received, the state of the neighbor node is set as a bidirectional link, and an update packet is sent to update the locally owned tunnel endpoint information to the neighbor;
步骤3.3.当邻居节点状态为双向链路时:Step 3.3. When the state of the neighbor node is a bidirectional link:
若接收到该邻居发来的0型呼叫分组,则设置邻居节点状态为单向链路,发送1型呼叫分组至该邻居;If a type 0 paging packet is received from the neighbor, set the status of the neighbor node as a unidirectional link, and send a type 1 paging packet to the neighbor;
若接收到该邻居发来的1型呼叫分组,则保持邻居节点状态为双向链路,发送请求分组至该邻居;If receiving the type 1 call packet sent by the neighbor, keep the state of the neighbor node as a bidirectional link, and send the request packet to the neighbor;
若接收到该邻居发来的请求分组,则保持邻居节点状态为双向链路,发送更新分组用以将本地拥有的隧道端点信息更新至该邻居;If the request packet sent by the neighbor is received, the state of the neighbor node is kept as a bidirectional link, and an update packet is sent to update the locally owned tunnel endpoint information to the neighbor;
若接收到该邻居发来的更新分组,则保持邻居节点状态为双向链路,发送确认分组至该邻居,并将接收到的更新的隧道端点信息用更新分组扩散给所有邻居;If the update packet sent by the neighbor is received, keep the state of the neighbor node as a bidirectional link, send a confirmation packet to the neighbor, and spread the received updated tunnel endpoint information to all neighbors with the update packet;
若接收到该邻居发来的确认分组,则设置邻居节点状态为已更新;If the acknowledgment packet sent by the neighbor is received, set the status of the neighbor node as updated;
步骤3.4.当邻居节点状态已更新时:Step 3.4. When the neighbor node status has been updated:
若接收到该邻居发来的0型呼叫分组,则设置邻居节点状态为单向链路,发送1型呼叫分组至该邻居;If a type 0 paging packet is received from the neighbor, set the status of the neighbor node as a unidirectional link, and send a type 1 paging packet to the neighbor;
若接收到该邻居发来的1型呼叫分组,则保持邻居节点状态为已更新;If the type 1 call packet sent by the neighbor is received, the status of the neighbor node is kept as updated;
若接收到该邻居发来的请求分组,则保持邻居节点状态为已更新,发送更新分组至该邻居用以将本地拥有的隧道端点信息更新至该邻居;If the request packet sent by the neighbor is received, the status of the neighbor node is kept as updated, and an update packet is sent to the neighbor to update the locally owned tunnel endpoint information to the neighbor;
若接收到该邻居发来的更新分组,则保持邻居节点状态为已更新,发送确认分组至该邻居,并将接收到的更新的隧道端点信息用更新分组扩散给所有邻居;If the update packet sent by the neighbor is received, the status of the neighbor node is kept as updated, a confirmation packet is sent to the neighbor, and the received updated tunnel endpoint information is diffused to all neighbors with the update packet;
若接收到该邻居发来的确认分组,保持邻居节点状态为已更新;If the acknowledgment packet sent by the neighbor is received, keep the status of the neighbor node as updated;
步骤3.5.若超时没有收到该邻居发来的呼叫分组,设置邻居节点状态为初始。Step 3.5. If the call packet from the neighbor is not received within the timeout, set the state of the neighbor node as initial.
通过上述P2P重叠网络,可以完成隧道端点信息的扩散和更新,可以协助IPv6“孤岛”自动建立IPv6“孤岛”之间的IPv6 over IPv4配置隧道;此外,经过实验验证,该方法可以保证P2P重叠网络100%连通,因此,该方法还具有分布式、高可靠性的特点。由此可见,本发明达到了预期的目的。Through the above-mentioned P2P overlay network, the diffusion and update of tunnel endpoint information can be completed, and it can assist IPv6 "islands" to automatically establish IPv6 over IPv4 configuration tunnels between IPv6 "islands"; in addition, through experimental verification, this method can ensure P2P overlay network 100% connectivity, therefore, the method also has the characteristics of distribution and high reliability. This shows that the present invention has reached the expected purpose.
附图说明 Description of drawings
图1.网络连接图:Figure 1. Network connection diagram:
←-----表示注册加入P2P网络,..............表示P2P邻居←-----Represents registering to join the P2P network, ..........Represents P2P neighbors
图2.新节点注册状态机:Figure 2. New node registration state machine:
表示超时没有收到回复分组, Indicates that the reply packet has not been received over time,
表示接收到回复分组; Indicates that a reply packet is received;
图3.邻居关系转移状态机:Figure 3. Neighborhood transition state machine:
表示接收到0型呼叫分组, Indicates that a type 0 call packet is received,
表示接收到1型呼叫分组, Indicates that a type 1 call packet is received,
表示接收到请求分组, Indicates that a request packet has been received,
表示接收到确认分组, Indicates receipt of an acknowledgment packet,
表示接收到更新分组, Indicates that an update packet has been received,
表示超时没有收到呼叫分组。 Indicates that the call packet has not been received over time.
具体实施方式 Detailed ways
本发明设计了一个运行于IPv4/IPv6双栈路由器和IPv4/IPv6双栈三层交换机上利用P2P重叠网络在IPv4上传递IPv6 over IPv4隧道端点信息的方法,设计了建立、维护P2P重叠网络、保持邻居关系和传递隧道端点信息的有关协议过程,协议分组类型和协议状态机。The present invention designs a method that runs on IPv4/IPv6 dual-stack routers and IPv4/IPv6 dual-stack three-layer switches using P2P overlay network to transmit IPv6 over IPv4 tunnel endpoint information on IPv4, and designs the establishment and maintenance of P2P overlay network, maintenance Neighbor relationship and related protocol process for transmitting tunnel endpoint information, protocol packet type and protocol state machine.
本方法通过随机选择节点作为P2P重叠关系邻居来构成一个分布式无结构的P2P重叠网络,通过一个中心注册机为新节点提供接入服务;整个网络拓扑如图1所示,IPv6“孤岛”边界网关通过中心注册机形成一个P2P的重叠网络,用以传递P2P节点,即隧道端点信息。This method constitutes a distributed unstructured P2P overlay network by randomly selecting nodes as P2P overlay relationship neighbors, and provides access services for new nodes through a central registration machine; the entire network topology is shown in Figure 1, and the IPv6 "island" boundary The gateway forms a P2P overlay network through the central registration machine to transmit P2P nodes, that is, tunnel endpoint information.
每个P2P重叠网络节点维护一个隧道端点信息数据库,用以保存已知的隧道端点信息,数据库中的每条信息包含以下几个内容:Each P2P overlay network node maintains a tunnel endpoint information database to store known tunnel endpoint information. Each piece of information in the database includes the following contents:
a.序列号:递增,用以标记信息的新旧,即序列号越大,信息越新;a. Serial number: Incremental, used to mark the old and new information, that is, the larger the serial number, the newer the information;
b.IPv4地址:表示隧道端点的IPv4地址;b. IPv4 address: indicates the IPv4 address of the tunnel endpoint;
c.IPv6地址范围:表示隧道端点可达的IPv6地址范围;c. IPv6 address range: indicates the reachable IPv6 address range of the tunnel endpoint;
d.有效位:标记该信息是否有效;0表示无效,1表示有效;d. Valid bit: mark whether the information is valid; 0 means invalid, 1 means valid;
e.最近更新时间:纪录该信息最近更新时间,作为删除超时没有更新的信息的依据。e. Latest update time: Record the latest update time of the information as the basis for deleting information that has not been updated after timeout.
中心注册机为新节点提供接入服务,需要维护和更新所有P2P节点IPv4地址信息,由于P2P重叠网络传递的隧道端点信息包含了P2P节点的IPv4地址,因此可以将中心注册机作为一个普通节点加入到P2P重叠网络中来,通过P2P重叠网络的更新机制完成P2P节点IPv4地址信息更新。中心注册机的功能包括:The central registration machine provides access services for new nodes, and needs to maintain and update the IPv4 address information of all P2P nodes. Since the tunnel endpoint information transmitted by the P2P overlay network contains the IPv4 address of the P2P node, the central registration machine can be added as an ordinary node. In the P2P overlay network, update the P2P node IPv4 address information through the update mechanism of the P2P overlay network. The functions of the central registration machine include:
a.作为普通节点参与P2P重叠网络的信息更新,维护P2P重叠网络中所有节点IPv4地址信息;a. Participate in the information update of the P2P overlay network as an ordinary node, and maintain the IPv4 address information of all nodes in the P2P overlay network;
b.接收到新节点的注册请求后,从所有P2P节点IPv4地址信息中随机选取部分节点IPv4地址,回复给该新节点,协助该新节点加入P2P重叠网络。b. After receiving the registration request of the new node, randomly select some node IPv4 addresses from all P2P node IPv4 address information, reply to the new node, and assist the new node to join the P2P overlay network.
本方法利用6种控制分组完成P2P重叠网络建立和维护,隧道端点信息扩散和更新等工作:This method uses 6 kinds of control groups to complete the establishment and maintenance of P2P overlay network, the diffusion and update of tunnel endpoint information, etc.:
a.呼叫分组:进行邻居关系建立和保持工作,分为0型和1型;0型呼叫分组用于与陌生节点建立邻居关系,1型呼叫分组用于与现有邻居节点保持邻居关系;a. Call group: establish and maintain neighbor relationship, divided into type 0 and type 1; type 0 call group is used to establish neighbor relationship with unfamiliar nodes, and type 1 call group is used to maintain neighbor relationship with existing neighbor nodes;
b.更新分组:完成将本地隧道端点信息数据库中的信息更新至邻居的工作;b. Update grouping: complete the work of updating the information in the local tunnel endpoint information database to neighbors;
c.确认分组:完成对接收到的更新分组进行确认的工作;c. Confirm group: complete the work of confirming the received update group;
d.请求分组:进行向邻居索取所拥有的隧道端点信息的工作;d. Request grouping: perform the work of requesting the tunnel endpoint information owned by the neighbor;
e.注册分组:进行向中心注册机注册,要求加入P2P重叠网络的工作;e. Registration group: register with the central registration machine and request to join the P2P overlay network;
f.回复分组:作为对注册分组的回复,携带部分P2P节点IPv4地址信息,协助新节点加入P2P重叠网络。f. Reply packet: As a reply to the registration packet, it carries some P2P node IPv4 address information to assist new nodes to join the P2P overlay network.
本方法定义4种P2P重叠网络邻居关系状态,结合上述6种控制分组中的前4种,用以完成重叠邻居关系的建立和维护,隧道端点信息的扩散和更新等工作,邻居状态包括:This method defines 4 kinds of P2P overlapping network neighbor relationship states, combined with the first 4 of the above 6 kinds of control groups, to complete the establishment and maintenance of overlapping neighbor relationships, the diffusion and update of tunnel endpoint information, etc. The neighbor states include:
a.初始:表示邻居关系初始状态;a. Initial: Indicates the initial state of the neighbor relationship;
b.单向链路:表示已确认邻居通向该节点的单向链路;b. One-way link: Indicates the one-way link of the confirmed neighbor leading to the node;
c.双向链路:表示已确认邻居与该节点的双向链路;c. Two-way link: indicates that the two-way link between the neighbor and the node has been confirmed;
d.已更新:表示本地隧道端点信息数据库中信息已更新至邻居。d. Updated: Indicates that the information in the local tunnel endpoint information database has been updated to the neighbor.
新节点注册加入P2P重叠网络时,首先通过中心注册机获得部分P2P节点IPv4地址信息,再与这些节点建立邻居关系,注册状态机如图2,包括以下步骤:When a new node registers to join the P2P overlay network, it first obtains some P2P node IPv4 address information through the central registration machine, and then establishes a neighbor relationship with these nodes. The registration state machine is shown in Figure 2, including the following steps:
a.新节点向中心注册机发送注册分组,要求加入P2P重叠网络;a. The new node sends a registration packet to the central registration machine, requesting to join the P2P overlay network;
b.中心注册机使用回复分组将随机选取的部分P2P节点IPv4地址信息发送给该新节点;b. The central registration machine uses the reply packet to send the randomly selected part of the P2P node IPv4 address information to the new node;
c.若:c. If:
i.该新节点接收到回复分组,则根据所得到的部分节点IPv4地址信息,向这些节点发送0型呼叫分组并设置邻居状态为初始;i. the new node receives the reply packet, then according to the obtained part of the node IPv4 address information, sends the 0-type call packet to these nodes and sets the neighbor status as initial;
ii.该新节点超时没有接收到回复分组,则跳转至a。ii. If the new node does not receive a reply packet within a timeout, then jump to a.
P2P重叠网络邻居关系建立和维护以及隧道端点信息扩散和更新状态机如图3,描述如下,若:P2P overlay network neighbor relationship establishment and maintenance and tunnel endpoint information diffusion and update state machine are shown in Figure 3, described as follows, if:
a.邻居节点状态为初始,若:a. Neighbor node status is initial, if:
i.接收到该邻居发来的0型呼叫分组,则设置邻居节点状态为单向链路,发送1型呼叫分组至该邻居;i. Receive the type 0 call packet sent by the neighbor, then set the state of the neighbor node as a unidirectional link, and send the type 1 call packet to the neighbor;
ii.接收到该邻居发来的1型呼叫分组,则设置邻居节点状态为双向链路,发送请求分组至该邻居;ii. After receiving the type 1 call packet sent by the neighbor, set the status of the neighbor node as a bidirectional link, and send the request packet to the neighbor;
b.邻居节点状态为单向链路,若:b. The status of the neighbor node is a one-way link, if:
i.接收到该邻居发来的0型呼叫分组,则保持邻居节点状态为单向链路,发送1型呼叫分组至该邻居;i. Receive the type 0 call packet sent by the neighbor, then keep the state of the neighbor node as a one-way link, and send the type 1 call packet to the neighbor;
ii.接收到该邻居发来的1型呼叫分组,则设置邻居节点状态为双向链路,发送请求分组至该邻居;ii. After receiving the type 1 call packet sent by the neighbor, set the status of the neighbor node as a bidirectional link, and send the request packet to the neighbor;
iii.接收到该邻居发来的请求分组,则设置邻居节点状态为双向链路,发送更新分组用以将本地拥有的隧道端点信息更新至该邻居;iii. After receiving the request packet sent by the neighbor, set the status of the neighbor node as a bidirectional link, and send an update packet to update the locally owned tunnel endpoint information to the neighbor;
c.邻居节点状态为双向链路,若:c. The status of the neighbor node is a bidirectional link, if:
i.接收到该邻居发来的0型呼叫分组,则设置邻居节点状态为单向链路,发送1型呼叫分组至该邻居;i. Receive the type 0 call packet sent by the neighbor, then set the state of the neighbor node as a unidirectional link, and send the type 1 call packet to the neighbor;
ii.接收到该邻居发来的1型呼叫分组,则保持邻居节点状态为双向链路,发送请求分组至该邻居;ii. After receiving the type 1 call packet sent by the neighbor, keep the state of the neighbor node as a bidirectional link, and send the request packet to the neighbor;
iii.接收到该邻居发来的请求分组,则保持邻居节点状态为双向链路,发送更新分组用以将本地拥有的隧道端点信息更新至该邻居;iii. After receiving the request packet sent by the neighbor, keep the status of the neighbor node as a bidirectional link, and send an update packet to update the locally owned tunnel endpoint information to the neighbor;
iv.接收到该邻居发来的更新分组,则保持邻居节点状态为双向链路,发送确认分组至该邻居,并将接收到的更新的隧道端点信息用更新分组扩散给所有邻居;iv. After receiving the update packet sent by the neighbor, keep the state of the neighbor node as a bidirectional link, send a confirmation packet to the neighbor, and spread the received updated tunnel endpoint information to all neighbors with the update packet;
v.接收到该邻居发来的确认分组,则设置邻居节点状态为已更新;v. After receiving the acknowledgment packet sent by the neighbor, set the status of the neighbor node as updated;
d.邻居节点状态已更新,若:d. Neighbor node status has been updated, if:
i.接收到该邻居发来的0型呼叫分组,则设置邻居节点状态为单向链路,发送1型呼叫分组至该邻居;i. Receive the type 0 call packet sent by the neighbor, then set the state of the neighbor node as a unidirectional link, and send the type 1 call packet to the neighbor;
ii.接收到该邻居发来的1型呼叫分组,则保持邻居节点状态为已更新;ii. After receiving the type 1 call packet sent by the neighbor, keep the state of the neighbor node as updated;
iii.接收到该邻居发来的请求分组,则保持邻居节点状态为已更新,发送更新分组至该邻居用以将本地拥有的隧道端点信息更新至该邻居;iii. After receiving the request packet sent by the neighbor, keep the status of the neighbor node as updated, and send an update packet to the neighbor to update the locally owned tunnel endpoint information to the neighbor;
iv.接收到该邻居发来的更新分组,则保持邻居节点状态为已更新,发送确认分组至该邻居,并将接收到的更新的隧道端点信息用更新分组扩散给所有邻居;iv. After receiving the update packet sent by the neighbor, keep the status of the neighbor node as updated, send a confirmation packet to the neighbor, and spread the received updated tunnel endpoint information to all neighbors with the update packet;
v.接收到该邻居发来的确认分组,保持邻居节点状态为已更新;v. Receive the acknowledgment packet sent by the neighbor, and keep the status of the neighbor node as updated;
e.超时没有收到该邻居发来的呼叫分组,包括0型呼叫分组和1型呼叫分组,设置邻居节点状态为初始。e. If no call packet from the neighbor is received after timeout, including type 0 call packet and type 1 call packet, set the state of the neighbor node as initial.
节点接收到邻居的发来的更新分组后,向邻居发送确认分组,确认收到更新信息。对接收到的更新分组中的每一条隧道端点信息,如果本地存在该信息,但序列号没有接收到的信息序列号大,或者本地不存在该信息,则更新本地隧道端点信息数据库;否则,将本地相应隧道端点信息加入到新的更新分组中,发送给上述邻居节点;同时,根据更新过的本地隧道端点信息数据库,利用更新分组,将刚刚更新的信息发送给其他邻居。After the node receives the update packet sent by the neighbor, it sends an acknowledgment packet to the neighbor to confirm the receipt of the update information. For each piece of tunnel endpoint information in the received update packet, if the information exists locally, but the sequence number is not as large as that of the received information, or the information does not exist locally, update the local tunnel endpoint information database; otherwise, update the local tunnel endpoint information database; The corresponding local tunnel endpoint information is added to the new update packet and sent to the above neighbor nodes; at the same time, according to the updated local tunnel endpoint information database, the update packet is used to send the just updated information to other neighbors.
每隔1800s,节点将属于自己的隧道端点信息序列号+1,使用更新分组扩散给邻居节点;同时,将最近更新时间距今大于3*1800s的隧道端点信息从隧道端点信息数据库中删除。Every 1800s, the node adds 1 to the serial number of its own tunnel endpoint information, and uses update packets to spread to neighbor nodes; at the same time, the tunnel endpoint information whose latest update time is greater than 3*1800s is deleted from the tunnel endpoint information database.
节点正常退出时,将本地隧道端点信息数据库中自己相应的信息序列号+1,有效位置为0,并通过更新分组发送给邻居,至少收到一个邻居的确认分组或者全部发送超时后,才可以退出。When the node exits normally, it will add 1 to its own corresponding information sequence number in the local tunnel endpoint information database, and the effective position is 0, and send it to the neighbors through the update packet, and only after receiving at least one confirmation packet from the neighbor or when all the sending times out quit.
当节点的IPv4地址发生变化的时候,首先通过更新分组向邻居发送退出信息,然后连接中心注册机重新加入到P2P重叠网络中来。当节点所能到达的IPv6地址范围发生变化时,则可立即通过更新分组在P2P重叠网络内扩散更新。When the node's IPv4 address changes, it first sends exit information to the neighbors through an update packet, and then the connection center registration machine rejoins the P2P overlay network. When the reachable IPv6 address range of a node changes, it can be immediately updated by updating packets in the P2P overlay network.
P2P重叠网络邻居之间通过呼叫分组保持邻接关系,节点每隔10s向邻居列表中状态为:单向链路/双向链路/已更新的邻居发送一次1型呼叫分组。Neighbors in the P2P overlapping network maintain adjacency through call packets, and the node sends a Type 1 call packet every 10s to neighbors in the neighbor list whose status is: unidirectional link/two-way link/updated.
连续3*10s没有接收到单向链路/双向链路/已更新状态邻居发送来的1型呼叫分组后,则认为该邻居节点失效,将邻居设置为初始状态,同时,将本地隧道端点信息数据库中该邻居的相应信息序列号+1,有效位置为0,并通过更新控制分组发送给其他邻居。After continuous 3*10s without receiving the type 1 call packet sent by the one-way link/two-way link/updated state neighbor, it is considered that the neighbor node is invalid, and the neighbor is set to the initial state. At the same time, the local tunnel endpoint information The corresponding information sequence number of the neighbor in the database is +1, and the effective position is 0, and it is sent to other neighbors through the update control packet.
当本地邻居列表非初始状态的邻居的个数小于5时,从本地隧道端点信息数据库中随机选取不是现有邻居的节点尝试建立邻居关系,重复进行,直到非初始状态的邻居个数大于等于5,或者本地隧道端点信息数据库中的节点均为现有邻居为止;当本地隧道端点信息数据库中的节点均为现有邻居且没有邻居在非初始状态时,重新连接中心注册机进行注册。When the number of neighbors in the non-initial state in the local neighbor list is less than 5, randomly select nodes that are not existing neighbors from the local tunnel endpoint information database to try to establish a neighbor relationship, and repeat until the number of neighbors in the non-initial state is greater than or equal to 5 , or until the nodes in the local tunnel endpoint information database are all existing neighbors; when the nodes in the local tunnel endpoint information database are all existing neighbors and no neighbor is in a non-initial state, reconnect to the central registration machine for registration.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100115034A CN100387020C (en) | 2006-03-17 | 2006-03-17 | Method of Transferring IPv4-IPv6 Address Mapping Relationship Using Overlapping Network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100115034A CN100387020C (en) | 2006-03-17 | 2006-03-17 | Method of Transferring IPv4-IPv6 Address Mapping Relationship Using Overlapping Network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1819542A CN1819542A (en) | 2006-08-16 |
CN100387020C true CN100387020C (en) | 2008-05-07 |
Family
ID=36919241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100115034A Expired - Fee Related CN100387020C (en) | 2006-03-17 | 2006-03-17 | Method of Transferring IPv4-IPv6 Address Mapping Relationship Using Overlapping Network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100387020C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101584192B (en) * | 2006-11-27 | 2013-10-30 | 艾利森电话股份有限公司 | Node registering method |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100405796C (en) * | 2006-09-19 | 2008-07-23 | 清华大学 | Access control method for real source address access in IPv6 access network |
CN101610285B (en) * | 2009-06-15 | 2012-10-31 | 北京邮电大学 | P2P communication method in the coexistence network of IPv4 and IPv6 |
CN114301994B (en) * | 2021-12-29 | 2023-09-19 | 迈普通信技术股份有限公司 | Dual-stack conversion method, device, network equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020089980A1 (en) * | 2001-01-11 | 2002-07-11 | Alcatel | Router providing continuity of service of the state machines associated with the neighboring routers |
CN1170397C (en) * | 2003-03-31 | 2004-10-06 | 中国科学院计算机网络信息中心 | A Method for IPv4 Network Accessing Hierarchical Switching Network |
CN1735264A (en) * | 2004-08-10 | 2006-02-15 | 皇家飞利浦电子股份有限公司 | Method and device for point-to-point opposite communication |
-
2006
- 2006-03-17 CN CNB2006100115034A patent/CN100387020C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020089980A1 (en) * | 2001-01-11 | 2002-07-11 | Alcatel | Router providing continuity of service of the state machines associated with the neighboring routers |
CN1170397C (en) * | 2003-03-31 | 2004-10-06 | 中国科学院计算机网络信息中心 | A Method for IPv4 Network Accessing Hierarchical Switching Network |
CN1735264A (en) * | 2004-08-10 | 2006-02-15 | 皇家飞利浦电子股份有限公司 | Method and device for point-to-point opposite communication |
Non-Patent Citations (6)
Title |
---|
OSPF Version 2. J.Moy.Request for Comments: 2328. 1998 |
OSPF Version 2. J.Moy.Request for Comments: 2328. 1998 * |
P2P网络中使用UDP穿越NAT的方法研究. 李河,王树明.吉林大学学报,第21卷第3期. 2003 |
P2P网络中使用UDP穿越NAT的方法研究. 李河,王树明.吉林大学学报,第21卷第3期. 2003 * |
高性能IPv4/v6双栈路由器邻居表管理设计与实现. 窦睿彧.微计算机信息,第21卷第10期. 2005 |
高性能IPv4/v6双栈路由器邻居表管理设计与实现. 窦睿彧.微计算机信息,第21卷第10期. 2005 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101584192B (en) * | 2006-11-27 | 2013-10-30 | 艾利森电话股份有限公司 | Node registering method |
Also Published As
Publication number | Publication date |
---|---|
CN1819542A (en) | 2006-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104168184B (en) | Message forwarding method and equipment | |
US7486670B2 (en) | Method for packet communication and computer program stored on computer readable medium | |
CN1745558B (en) | Arrangement for establishing a bidirectional tunnel between a mobile router and a correspondent router | |
CN102006676B (en) | Network-based macro mobility in cellular networks using an extended routing protocol | |
CN101047636B (en) | Method and system for end-to-end pseudo-line simulation virtual leased line access virtual special network | |
US6873603B1 (en) | MAC address population protocol | |
EP1030491A3 (en) | System and method for route optimization in a wireless internet protocol network | |
CN101052022B (en) | System and method for virtual special net user to access public net | |
CN1830182A (en) | Arrangement to extract routing information used to establish a bidirectional tunnel between a mobile router and a peer router | |
CN102638389A (en) | Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network | |
CN100387020C (en) | Method of Transferring IPv4-IPv6 Address Mapping Relationship Using Overlapping Network | |
CN101159659A (en) | Multicast method using single static two-way shared tree in soft wire tunnel | |
CN111865780A (en) | A synchronization method and device | |
CN101001193A (en) | Group broadcast desposition method between IPv6 islet and its equipment | |
CN101160862B (en) | Method and system for realizing the consistency of the virtual circuit status | |
WO2005112350A1 (en) | A METHOD FOR MANAGING THE ROUTE IN THE VIRTUAL PRIVATE NETWORK BASED ON IPv6 | |
CN101771571A (en) | Topology discovery method based on perception of adjacency in reconfigurable flexible network | |
CN101383834A (en) | Method for forwarding IPv6 multicast report between 6to4 networks and 6to4 device | |
CN100413289C (en) | The Method of Realizing IPv6 High Performance Interconnection Based on P2P on IPv4 | |
TW201505406A (en) | Method for establishing connection of community virtual network and network communication system thereof | |
JP5385269B2 (en) | IPv6-IPv4 conversion method and apparatus for improving control server performance | |
CN108632777A (en) | Mining wireless node carries out Point-to-Point Data Transmission method in MESH network | |
CN101326776A (en) | Aggregation Management System, Aggregation Nodes, and Deaggregation Nodes | |
US7286542B2 (en) | Mobile communication network system, foreign agent router, address server and packet delivery method employed therein | |
JP3850339B2 (en) | Mobile QoS communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080507 |
|
CF01 | Termination of patent right due to non-payment of annual fee |