Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dast
openairinterface5G
Commits
84177053
Commit
84177053
authored
7 years ago
by
Tien-Thinh Nguyen
Browse files
Options
Downloads
Patches
Plain Diff
update instructions for 1-1, update multicast_link.c
parent
c24e4e6d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
d2d_emulator_setup.txt
+19
-5
19 additions, 5 deletions
d2d_emulator_setup.txt
openair1/SIMULATION/ETH_TRANSPORT/multicast_link.c
+1
-1
1 addition, 1 deletion
openair1/SIMULATION/ETH_TRANSPORT/multicast_link.c
with
20 additions
and
6 deletions
d2d_emulator_setup.txt
+
19
−
5
View file @
84177053
Scenario 1 : Off-network UE2UE link
Scenario 1 : Off-network UE2UE link
SynchREF UE (UE1)
SynchREF UE (UE1)
UE1(eth0 - 10.10.10.1)--------UE2(e
th0
- 10.10.10.2)
UE1(eth0 - 10.10.10.1)--------UE2(e
no1
- 10.10.10.2)
Here's an example of /etc/network/interfaces configuration for UE1
Here's an example of /etc/network/interfaces configuration for UE1
auto eth0
auto eth0
...
@@ -39,12 +39,13 @@ UE1:
...
@@ -39,12 +39,13 @@ UE1:
- sudo iptables -A POSTROUTING -t mangle -o oip0 -d 224.0.0.1 -j MARK --set-mark 3
- sudo iptables -A POSTROUTING -t mangle -o oip0 -d 224.0.0.1 -j MARK --set-mark 3
- (if necessary) sudo route add default gw 10.10.10.1 eth0
- (if necessary) sudo route add default gw 10.10.10.1 eth0
UE2:
UE2:
- sudo ifconfig oip
1
10.0.0.2
- sudo ifconfig oip
0
10.0.0.2
- sudo iptables -A POSTROUTING -t mangle -o oip
1
-d 224.0.0.1 -j MARK --set-mark 3
- sudo iptables -A POSTROUTING -t mangle -o oip
0
-d 224.0.0.1 -j MARK --set-mark 3
- (if necessary) sudo route add default gw 10.10.10.1 e
th0
- (if necessary) sudo route add default gw 10.10.10.1 e
no1
UE1 and UE2: Get and build vencore_app from d2d-l3-stub (branch: l3_stub)
UE1 and UE2: Get and build vencore_app from d2d-l3-stub (branch: l3_stub)
- gcc -I . vencore_app.c -o vencore_app -lpthread
- gcc -I . vencore_app.c -o vencore_app -lpthread
--------------------------------
--------------------------------
TEST ONE-TO-MANY
TEST ONE-TO-MANY
Run UE1 then UE2, for example:
Run UE1 then UE2, for example:
...
@@ -72,7 +73,17 @@ UE1 (sender)
...
@@ -72,7 +73,17 @@ UE1 (sender)
- ./vencore_app #we can see the packets appearing in Wireshark
- ./vencore_app #we can see the packets appearing in Wireshark
--------------------------------------
--------------------------------------
TEST PC5-S (UE1 -sender, UE2 - receiver)
TEST PC5-S (UE1 -sender, UE2 - receiver) and PC5-U for ONE-TO-ONE scenario
Configure UE1/UE2
UE1:
- sudo ifconfig oip0 10.0.0.1
- sudo iptables -A POSTROUTING -t mangle -o oip0 -d 10.0.0.2 -j MARK --set-mark 3
- sudo route add default gw 10.10.10.1 eth0
UE2:
- sudo ifconfig oip0 10.0.0.2
- sudo iptables -A POSTROUTING -t mangle -o oip0 -d 10.0.0.1 -j MARK --set-mark 3
- sudo route add default gw 10.10.10.1 eno1
step 1:
step 1:
- UE1: sudo ./lte-softmodem-stub -U --emul-iface eth0
- UE1: sudo ./lte-softmodem-stub -U --emul-iface eth0
step 2:
step 2:
...
@@ -80,6 +91,9 @@ step 2:
...
@@ -80,6 +91,9 @@ step 2:
- UE2: ./vencore_app -r #listen to incomming message from PC5-S
- UE2: ./vencore_app -r #listen to incomming message from PC5-S
step 3:
step 3:
- UE1: ./vencore_app -s #send a message via PC5-S (e.g., DirectCommunicationRequest)
- UE1: ./vencore_app -s #send a message via PC5-S (e.g., DirectCommunicationRequest)
Generate unicast traffic
UE1: ping -I oip0 10.0.0.2
--------------------------------------
--------------------------------------
...
...
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/ETH_TRANSPORT/multicast_link.c
+
1
−
1
View file @
84177053
...
@@ -115,7 +115,7 @@ multicast_link_init(void)
...
@@ -115,7 +115,7 @@ multicast_link_init(void)
if
(
multicast_if
!=
NULL
)
{
if
(
multicast_if
!=
NULL
)
{
if
(
setsockopt
(
group_list
[
group
].
socket
,
SOL_SOCKET
,
SO_BINDTODEVICE
,
if
(
setsockopt
(
group_list
[
group
].
socket
,
SOL_SOCKET
,
SO_BINDTODEVICE
,
multicast_if
,
4
)
<
0
)
{
multicast_if
,
strlen
(
multicast_if
)
)
<
0
)
{
LOG_E
(
EMU
,
LOG_E
(
EMU
,
"[MULTICAST] ERROR : setsockopt:SO_BINDTODEVICE on interface %s, exiting ...
\n
"
,
"[MULTICAST] ERROR : setsockopt:SO_BINDTODEVICE on interface %s, exiting ...
\n
"
,
multicast_if
);
multicast_if
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment