Communication method and device

An IP address and index technology, applied in the field of communication, can solve problems such as occupation, inability to verify the validity of messages, and restrictions on networking flexibility

Active Publication Date: 2018-12-11
NEW H3C TECH CO LTD
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, since the length of the key field in the GRE protocol is only 4 bytes, and it can only carry numeric characters
Therefore, the length of the VPN name cannot exceed 4 bytes, and the VPN name must be a number, which limits the flexibility of networking. Moreover, based on the existing technology, the VPN name occupies the key field, which makes it impossible to verify the validity of the message. Function

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method and device
  • Communication method and device
  • Communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] The embodiment of the present application provides a communication method, which can be applied to the first network device, such as figure 2 As shown, the specific processing process is as follows.

[0050] Step 201, when receiving a first service packet sent by a user terminal, obtain forwarding information for forwarding the first service packet.

[0051] Wherein, the forwarding information includes the source IP address of the transmission tunnel, the destination IP address and the name of the virtual private network (VPN) to which the user terminal belongs.

[0052] Step 202, according to the destination IP address and VPN name, query the first VPN index and the first entry type corresponding to both the destination IP address and the VPN name in the pre-stored VPN index table.

[0053] Wherein, the first entry type is the type of the entry corresponding to the destination IP address, the VPN name, and the first VPN index.

[0054] Step 203, if the first VPN ind...

Embodiment 2

[0058] based on figure 2 For the communication method shown, this embodiment of the present application also provides a specific process when the first network device executes the above communication method, as shown in image 3 As shown, the specific process is as follows.

[0059] Step 301, when receiving a first service packet sent by a user terminal, obtain forwarding information for forwarding the first service packet.

[0060] Wherein, the forwarding information includes the source IP address of the transmission tunnel, the destination IP address and the name of the virtual private network (VPN) to which the user terminal belongs.

[0061] In an implementation, when the first user terminal communicates with the second user terminal, the first user terminal may send the first service packet to the first network device. Wherein, the source address of the first service message is the IP address of the first user terminal, and the destination address is the IP address of ...

Embodiment 3

[0116]The embodiment of the present application provides a communication method, which can be applied to the first network device, such as Image 6 As shown, the specific processing process is as follows.

[0117] Step 601, receiving a first tunnel message sent by a second network device.

[0118] Wherein, the first tunnel packet includes the source IP address, and the GRE header field of the first tunnel packet includes a virtual private network VPN identifier and a first VPN index corresponding to the VPN identifier.

[0119] Step 602, according to the source IP address and the first VPN index, query the first VPN name corresponding to both the source IP address and the first VPN index in a pre-stored VPN index table.

[0120] Step 603, if the first VPN name is found, decapsulate the first tunnel packet to obtain a service packet. Wherein, the service packet includes the IP address of the user terminal.

[0121] Step 604: Forward the service message to the user terminal a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A method and apparatus for communication is provide, in accordance with that present invention, the method is applied to a first network device, The method comprises: when a first service message sentby a user terminal is received, obtaining forwarding information for forwarding a first service message, querying a first VPN index and a first entry type corresponding to both the destination IP address and the VPN name in a pre-stored VPN index table, if the first VPN index is queried, and the first entry type is a valid type, GRE encapsulation processing is carried out on the first service message by universal route encapsulation to obtain a first tunnel message, The GRE header field of the first tunnel message comprises a VPN identifier and a first VPN index corresponding to the VPN identifier, and the first tunnel message is sent to a second network device indicated by the IP address of the destination through an interface indicated by the IP address of the source end. Communicationbetween user terminals can be realized by using the present application.

Description

technical field [0001] The present application relates to the technical field of communication, and in particular to a communication method and device. Background technique [0002] Currently, in a cloud computing network, virtual private clouds (English: Virtual Private Cloud, VPC for short) can implement inter-Internet communication through a generic routing encapsulation (English: Generic Routing Encapsulation, short: GRE) protocol. At the same time, in the VPC, the VPC assigns different virtual private networks (English: Virtual Private Network, VPN for short) to different tenants, so as to realize isolation between tenants. [0003] In the prior art, in order to realize communication between tenants of the same VPN in different VPCs, when the GRE protocol encapsulates the service packets sent by the tenants, the key field in the GRE protocol carries the VPN name. [0004] However, since the length of the key (key) field in the GRE protocol is only 4 bytes, it can only ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/46H04L29/06
CPCH04L12/4633H04L12/4641H04L69/06
Inventor 韩冰吴宝平刘德财聂树伟
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products