CN111885596A - Data forwarding system and method based on virtual port - Google Patents

Data forwarding system and method based on virtual port Download PDF

Info

Publication number
CN111885596A
CN111885596A CN202010767811.XA CN202010767811A CN111885596A CN 111885596 A CN111885596 A CN 111885596A CN 202010767811 A CN202010767811 A CN 202010767811A CN 111885596 A CN111885596 A CN 111885596A
Authority
CN
China
Prior art keywords
data
virtual port
message
virtual
forwarding
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
CN202010767811.XA
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.)
Nanjing Creatcomm Technology Co ltd
Original Assignee
Nanjing Creatcomm Technology 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 Nanjing Creatcomm Technology Co ltd filed Critical Nanjing Creatcomm Technology Co ltd
Priority to CN202010767811.XA priority Critical patent/CN111885596A/en
Publication of CN111885596A publication Critical patent/CN111885596A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0205Traffic management, e.g. flow control or congestion control at the air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/467Arrangements for supporting untagged frames, e.g. port-based VLANs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information

Landscapes

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

Abstract

The invention provides a data forwarding system and method based on virtual port, comprising a kernel data transmission module, a data forwarding module and a virtual port module, wherein the kernel data transmission module is used for adding a data tunnel head to a corresponding data message according to the data related to the self attribute of equipment participating in transmission, removing the data tunnel head according to the private Ethernet head, analyzing the data attribution of a user message and sending the message to the virtual port on a designated service bridge; and the virtual port driving module is used for butting the data message of the user side and guiding the user data to the corresponding virtual port aiming at different users so as to realize the forwarding of the data. The invention is based on data binding, adds a private Ethernet header, manages user data and realizes stable and safe transmission of service data.

Description

Data forwarding system and method based on virtual port
Technical Field
The invention relates to the technical field of wireless communication, in particular to a data forwarding system and method based on a virtual port.
Background
In data communication, the device needs to implement transparency to the user as much as possible, so that the user has no perception on the device participating in transmission in the data transmission process, and meanwhile, due to the particularity of air interface data transmission, the device needs to ensure stable transmission of user data and data security as much as possible.
Disclosure of Invention
The invention aims to provide a data forwarding system and method based on a virtual port, which adds a private Ethernet head to manage user data and realize stable and safe transmission of service data.
The invention provides the following technical scheme:
a virtual port-based data forwarding system, comprising:
the kernel data transmission module is used for adding a data tunnel head to a corresponding data message according to the data related to the self attribute of the equipment participating in transmission, removing the data tunnel head according to the private Ethernet head, analyzing the data attribution of the user message and sending the message to a virtual port on a specified service bridge;
and the virtual port driving module is used for butting the data message of the user side and guiding the user data to the corresponding virtual port aiming at different users so as to realize the forwarding of the data.
A data forwarding method based on virtual ports comprises the following steps:
a1, the data message of the user enters the service bridge from the wired port, and is sent to the air interface drive interface from the sending interface of the virtual port drive module, and meanwhile, a data tunnel head is added to the data message through the kernel data transmission module;
a2, after receiving the data message, the receiving interface of the wireless interface of the opposite terminal releases the data tunnel head through the kernel data transmission module, and sends the data message to the virtual port on the appointed service bridge;
a3, the virtual port driver module forwards the data packet on the virtual port to the corresponding wired port for different users, so as to implement data forwarding.
Preferably, the service bridge of the wireless interface in step a2 is provided with wireless terminal devices corresponding to 8 virtual ports.
Preferably, when the wireless terminal device supports forwarding data with a vlan, in this vlan mode, a plurality of virtual ports and wired ports for receiving data streams with the vlan are created by a vconfig command.
Preferably, the kernel data transmission module in step a1 adds a data tunnel header to the corresponding data packet according to the data related to the own attribute of the device participating in transmission, so as to use a private ethernet header.
The invention has the beneficial effects that: the method can ensure that the user data is transparently transmitted in the equipment, keep the user address information not to be presented in an air interface medium in an air interface encryption state, and simultaneously bind different virtual interfaces to different terminals aiming at a multi-terminal environment to realize respective management and ensure stable transmission; the invention is based on data binding, adds a private Ethernet header, manages user data and realizes stable and safe transmission of service data.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of the overall process of the present invention in the default mode;
FIG. 2 is a diagram of air interface data encapsulation in a default mode according to the present invention;
FIG. 3 is a flowchart of the overall processing in the vlan mode according to the present invention;
fig. 4 is an air interface data encapsulation diagram in vlan mode according to the present invention.
Detailed Description
As shown in fig. 1 to 4, a virtual port-based data forwarding system includes:
the kernel data transmission module is used for adding a data tunnel head to a corresponding data message according to the data related to the self attribute of the equipment participating in transmission, removing the data tunnel head according to the private Ethernet head, analyzing the data attribution of the user message and sending the message to a virtual port on a specified service bridge;
and the virtual port driving module is used for butting the data message of the user side and guiding the user data to the corresponding virtual port aiming at different users so as to realize the forwarding of the data.
A data forwarding method based on virtual ports comprises the following steps:
a1, the data message of the user enters the service bridge from the wired port, and is sent to the air interface driving interface from the sending interface of the virtual port driving module, and meanwhile, a data tunnel head is added to the data message through the kernel data transmission module;
a2, after receiving the data message, the receiving interface of the wireless interface of the opposite terminal releases the data tunnel head through the kernel data transmission module, and sends the data message to the virtual port on the appointed service bridge;
a3, the virtual port driving module forwards the data packet on the virtual port to the corresponding wired port aiming at different users, so as to realize the forwarding of data.
Wherein, the service bridge of the wireless interface of step a2 is provided with wireless terminal devices corresponding to 8 virtual ports, when the wireless terminal device supports forwarding data with vlan, in this vlan mode, several virtual ports and wired ports for receiving data stream with vlan are created through vconfig command, the kernel data transmission module of step a1 adds data tunnel header to corresponding data message according to the data related to the own attribute of the device participating in transmission, so as to use private ethernet header.
As shown in fig. 1-2, in a default mode, a data packet enters a service bridge from a wired port, and is sent to an air interface driver interface wlan0 from a sending interface of a virtual port, and after receiving the data packet, a wireless interface wlan0 of an opposite end sends the data packet to a virtual port on the service bridge, and then forwards the data packet to a specified wired port through a virtual port driver module, so as to implement data forwarding.
As shown in fig. 3 to fig. 4, the device supports forwarding data with vlan, the implementation logic is consistent with the default mode, and data forwarding is implemented through the virtual port driver module and the kernel data transmission module.
In vlan mode, several virtual ports and wired ports are created to receive data streams with vlans by means of vconfig commands. A message with VLAN enters a service VLAN100 bridge from a port of a wire port VLAN100, the message is sent from a sending interface of a virtual VLAN100 to an air interface driving interface wlan0, after a receiving interface of an opposite-end wlan0 receives the message, the message is sent to the virtual port VLAN100 on the service VLAN100 bridge corresponding to the VLAN, and then the message is forwarded to a specified wire port through a virtual port driving module, so as to implement service forwarding.
The invention has the beneficial effects that: the method can ensure that the user data is transparently transmitted in the equipment, keep the user address information not to be presented in an air interface medium in an air interface encryption state, and simultaneously bind different virtual interfaces to different terminals aiming at a multi-terminal environment to realize respective management and ensure stable transmission; the invention is based on data binding, adds a private Ethernet header, manages user data and realizes stable and safe transmission of service data.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. A virtual port-based data forwarding system, comprising:
the kernel data transmission module is used for adding a data tunnel head to a corresponding data message according to the data related to the self attribute of the equipment participating in transmission, removing the data tunnel head according to the private Ethernet head, analyzing the data attribution of the user message and sending the message to a virtual port on a specified service bridge;
and the virtual port driving module is used for butting the data message of the user side and guiding the user data to the corresponding virtual port aiming at different users so as to realize the forwarding of the data.
2. A data forwarding method based on virtual ports is characterized by comprising the following steps:
a1, the data message of the user enters the service bridge from the wired port, and is sent to the air interface drive interface from the sending interface of the virtual port drive module, and meanwhile, a data tunnel head is added to the data message through the kernel data transmission module;
a2, after receiving the data message, the receiving interface of the wireless interface of the opposite terminal releases the data tunnel head through the kernel data transmission module, and sends the data message to the virtual port on the appointed service bridge;
a3, the virtual port driver module forwards the data packet on the virtual port to the corresponding wired port for different users, so as to implement data forwarding.
3. The virtual port-based data forwarding method according to claim 2, wherein the service bridge of the wireless interface in step a2 is provided with wireless terminal devices corresponding to 8 virtual ports.
4. The method as claimed in claim 3, wherein when the wireless terminal device supports vlan-based data forwarding, in vlan mode, a plurality of virtual ports and wired ports for receiving vlan-based data streams are created by using a vconfig command.
5. The virtual port-based data forwarding method according to claim 2, wherein the kernel data transmission module in step a1 adds a data tunnel header to the corresponding data packet according to the data related to the self-attribute of the device participating in transmission, so as to use a private ethernet header.
CN202010767811.XA 2020-08-03 2020-08-03 Data forwarding system and method based on virtual port Pending CN111885596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010767811.XA CN111885596A (en) 2020-08-03 2020-08-03 Data forwarding system and method based on virtual port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010767811.XA CN111885596A (en) 2020-08-03 2020-08-03 Data forwarding system and method based on virtual port

Publications (1)

Publication Number Publication Date
CN111885596A true CN111885596A (en) 2020-11-03

Family

ID=73206165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010767811.XA Pending CN111885596A (en) 2020-08-03 2020-08-03 Data forwarding system and method based on virtual port

Country Status (1)

Country Link
CN (1) CN111885596A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272338A (en) * 2008-05-14 2008-09-24 杭州华三通信技术有限公司 Method for port band width configuration on non-line speed interface plate and non-line speed interface plate
CN101697555A (en) * 2009-11-12 2010-04-21 烽火通信科技股份有限公司 Solution to VLAN ID convergence conversion
CN102149167A (en) * 2010-02-10 2011-08-10 正崴精密工业股份有限公司 Method for automatic pairing to a wireless network
CN103078779A (en) * 2012-12-28 2013-05-01 太仓市同维电子有限公司 Method for realizing different internet businesses based on vlan (virtual local area network) at same interface
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
US20140179234A1 (en) * 2012-12-24 2014-06-26 Samsung Electronics Co., Ltd. Bluetooth device pairing method and bluetooth device
CN104684056A (en) * 2015-03-18 2015-06-03 小米科技有限责任公司 Pairing method and device for user equipment and server
US9848457B1 (en) * 2016-10-19 2017-12-19 Hyundai Motor Company Wireless connection system and method of controlling same
CN107809335A (en) * 2017-11-16 2018-03-16 北京润科通用技术有限公司 The collocation method and device of a kind of network system
CN108292935A (en) * 2016-08-23 2018-07-17 华为技术有限公司 A kind of Bluetooth pairing methods and bluetooth equipment
CN108391259A (en) * 2018-01-11 2018-08-10 佳禾智能科技股份有限公司 A kind of method that bluetooth is quickly matched
CN109041031A (en) * 2018-08-30 2018-12-18 北京轩辕联科技有限公司 Bluetooth automatic matching method, apparatus, mobile unit and vehicle
CN111107667A (en) * 2019-12-31 2020-05-05 歌尔股份有限公司 Bluetooth headset pairing method and device and readable storage medium
US20210227605A1 (en) * 2020-01-17 2021-07-22 Sig Sauer, Inc. Establishing pairing between electrical devices

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272338A (en) * 2008-05-14 2008-09-24 杭州华三通信技术有限公司 Method for port band width configuration on non-line speed interface plate and non-line speed interface plate
CN101697555A (en) * 2009-11-12 2010-04-21 烽火通信科技股份有限公司 Solution to VLAN ID convergence conversion
CN102149167A (en) * 2010-02-10 2011-08-10 正崴精密工业股份有限公司 Method for automatic pairing to a wireless network
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
US20140179234A1 (en) * 2012-12-24 2014-06-26 Samsung Electronics Co., Ltd. Bluetooth device pairing method and bluetooth device
CN103078779A (en) * 2012-12-28 2013-05-01 太仓市同维电子有限公司 Method for realizing different internet businesses based on vlan (virtual local area network) at same interface
CN104684056A (en) * 2015-03-18 2015-06-03 小米科技有限责任公司 Pairing method and device for user equipment and server
CN108292935A (en) * 2016-08-23 2018-07-17 华为技术有限公司 A kind of Bluetooth pairing methods and bluetooth equipment
US9848457B1 (en) * 2016-10-19 2017-12-19 Hyundai Motor Company Wireless connection system and method of controlling same
CN107809335A (en) * 2017-11-16 2018-03-16 北京润科通用技术有限公司 The collocation method and device of a kind of network system
CN108391259A (en) * 2018-01-11 2018-08-10 佳禾智能科技股份有限公司 A kind of method that bluetooth is quickly matched
CN109041031A (en) * 2018-08-30 2018-12-18 北京轩辕联科技有限公司 Bluetooth automatic matching method, apparatus, mobile unit and vehicle
CN111107667A (en) * 2019-12-31 2020-05-05 歌尔股份有限公司 Bluetooth headset pairing method and device and readable storage medium
US20210227605A1 (en) * 2020-01-17 2021-07-22 Sig Sauer, Inc. Establishing pairing between electrical devices

Similar Documents

Publication Publication Date Title
CN107786613B (en) Broadband remote access server BRAS forwarding implementation method and device
CN107995052B (en) Method and apparatus for common control protocol for wired and wireless nodes
CN103401773B (en) Method and network equipment realizing interboard communication
US9414136B2 (en) Methods and apparatus to route fibre channel frames using reduced forwarding state on an FCoE-to-FC gateway
US10841230B1 (en) Intelligent controller and sensor network bus, system and method
US20140211808A1 (en) Switch with dual-function management port
WO2015058698A1 (en) Data forwarding
CN107682370B (en) Method and system for creating protocol headers for embedded layer two packets
CN102158409B (en) Retransmission control method for IP (Internet Protocol) message and equipment thereof
CN114124618B (en) Message transmission method and electronic equipment
CN103313308B (en) A kind of data transmission method and equipment
US9066162B2 (en) Industrial controller apparatus capable of low error, ultra high-speed serial communication and method for driving same
CN109120492B (en) Storage unit, source switch, message forwarding method and mirror image system
CN105337884A (en) Method and device for achieving multistage message editing service control on the basis of logic port
WO2010145091A1 (en) Method for implementing virtual network port and embedded device for implementing virtual network port
CN104184646B (en) VPN data interactive method and system and its network data exchange equipment
CN105264869A (en) Ip address allocation system and method
WO2010025628A1 (en) Method, equipment and system for data transmission on physical layer.
CN104283714A (en) Exchanger and system and method for achieving multiple management VLANs
WO2006112120A1 (en) Information processing system, information processing apparatus, and information processing method
CN111885596A (en) Data forwarding system and method based on virtual port
CN112839355B (en) IPSEC testing system and method in network of 5G network
CN102932228A (en) Communication method, device and system for TRILL (Transparent Interconnection of Lots of Links) network
CN105827588B (en) A kind of stream medium data dissemination system based on network driver layer
JP5458340B2 (en) Network relay device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination